registration method

  1. @override
Future<bool> registration()
override

Returns a value indicating whether the device should automatically register on the dashboard.

Implementation

@override
Future<bool> registration() async {
  bool? rvalue;
  try {
    rvalue = await methodChannel.invokeMethod<bool>('registration');
  } on PlatformException catch (e) {
    print('Cannot get registration value: $e');
  }
  return rvalue ?? false;
}