getDeviceId method

  1. @override
Future<String?> getDeviceId()
override

Implementation

@override
Future<String?> getDeviceId() async {
  try {
    final screenName =
        await methodChannel.invokeMethod<String>('getDeviceId');
    return screenName;
  } on PlatformException catch (e) {
    debugPrint('Failed to get device id: ${e.message}');
    return null;
  }
}