getDeviceInfo method
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);
});
}