onInit property Null safety

Future<bool?> onInit

Use this for init device (return bool)

Implementation

static Future<bool?> get onInit async {
  final bool? success = await _channel.invokeMethod('onInit');
  return success;
}