getDeviceId method

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

Implementation

@override
Future<String> getDeviceId() async {
  try {
    return await methodChannel.invokeMethod<String>('getDeviceId') ?? '';
  }
  on PlatformException catch(exception) {
    log.severe('Exception when getting the device id: ${exception.message}');
    return '';
  }
}