getDeviceId method

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

Implementation

@override
Future<String> getDeviceId() async {
  try {
    final String result = await methodChannel.invokeMethod(
      Method.getDeviceId.value,
    );

    return result;
  } catch (e) {
    log("Failed to getDeviceId", level: 3, error: e);
    rethrow;
  }
}