getDeviceId method

Future<String?> getDeviceId()

Fetches the deviceId, a unique identifier shared between multiple users using the same app on the same device. @returns the deviceId.

Implementation

Future<String?> getDeviceId() async {
  return await _channel.invokeMethod(
      'getDeviceId', jsonEncode(_baseProperties()));
}