getDeviceInfo method

  1. @override
Future<DeviceInfoEntity?> getDeviceInfo()
override

Implementation

@override
Future<DeviceInfoEntity?> getDeviceInfo() async {
  Map<dynamic, dynamic>? info = await methodChannel.invokeMethod<Map<dynamic, dynamic>>(MethodCallName.getDeviceInfo);
  if (info != null) {
    return DeviceInfoEntity.fromJson(info!);
  }
  return null;
}