getDeviceUUID method

void getDeviceUUID({
  1. required dynamic callback(
    1. String uuid
    ),
})

Returns device UUID to callback.

Implementation

void getDeviceUUID({required Function(String uuid) callback}) async {
  if (_initialized) {
    callback(await channel.invokeMethod('getDeviceUUID'));
  } else {
    _pendingCallbackMethods.add(_PendingCallbackMethod(
        methodName: 'getDeviceUUID', callback: callback));
  }
}