getDeviceId method
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;
}
}