setDeviceId method

  1. @override
Future<void> setDeviceId(
  1. String deviceId
)
override

Implementation

@override
Future<void> setDeviceId(String deviceId) async {
  try {
    final Map<String, String> arguments = {
      Argument.deviceId.value: deviceId,
    };

    return methodChannel.invokeMethod(Method.setDeviceId.value, arguments);
  } catch (e) {
    log("Failed to setDeviceId", level: 3, error: e);
  }
}