getDeviceId method
Invoke native code to return a device id for iOS and an unique identifer for Android. Throw an error if getDeviceId is not implemented for a platform.
Implementation
@override
Future<String?> getDeviceId() async {
final deviceId = await methodChannel.invokeMethod<String>('getDeviceId');
return deviceId;
}