open method

  1. @override
Future<bool> open({
  1. required bool autoStart,
  2. required bool batterySafer,
})
override

Implementation

@override
Future<bool> open({required bool autoStart, required bool batterySafer}) async {
  if (!Platform.isAndroid) {
    return false;
  }
  return await methodChannel.invokeMethod<bool>('open', {'autoStart': autoStart, 'batterySafer': batterySafer}) ?? false;
}