getDeviceInfo method

  1. @override
Future<DeviceUser?> getDeviceInfo(
  1. String deviceId
)
override

Implementation

@override
Future<DeviceUser?> getDeviceInfo(String deviceId) {
  return _channel
      .invokeMethod("getDeviceInfo", {"deviceId": deviceId}).then((value) {
    if (value == null || value == "null") {
      return null;
    }
    Map<String, dynamic> listJson = json.decode(value);
    return DeviceUser.fromJson(listJson);
  });
}