fetchDevice method

Future<NotificareDevice> fetchDevice()

Implementation

Future<NotificareDevice> fetchDevice() async {
  final json =
      await _methodChannel.invokeMapMethod<String, dynamic>('fetchDevice');
  return NotificareDevice.fromJson(json!);
}