openAppSettings static method

Future<void> openAppSettings({
  1. bool asAnotherTask = false,
  2. Function? callback,
})

Future async method call to open app specific settings screen.

Implementation

static Future<void> openAppSettings(
    {bool asAnotherTask = false, Function? callback}) async {
  await _channel
      .invokeMethod('app_settings', {'asAnotherTask': asAnotherTask});
  if (callback != null) handleCallback(callback);
}