getDeviceInfo method

  1. @override
Future<Map<Object?, Object?>?> getDeviceInfo()
override

Fetches the device information.

This method uses a method channel to invoke the getDeviceInfo method on the native platform and returns the result.

Implementation

@override
Future<Map<Object?, Object?>?> getDeviceInfo() async {
  final device = await methodChannel
      .invokeMethod<Map<Object?, Object?>?>('getDeviceInfo');
  return device;
}