getDeviceId method
Gets the device identifier. return The device identifier.
Implementation
@override
Future<String?> getDeviceId() async {
try {
final deviceId = methodChannel.invokeMethod<String>('getDeviceId');
return deviceId;
} on PlatformException catch (e) {
print('getDeviceId fail: ${e.message}');
return "";
}
}