openAppSettings static method

Future<bool> openAppSettings(
  1. String packageName
)

Launch the Settings screen of the app based on its packageName You will then receive in return if the app was opened (will be false if the app is not installed)

Implementation

static Future<bool> openAppSettings(String packageName) {
  if (packageName.isEmpty) {
    throw Exception('The package name can not be empty');
  }

  return _methodChannel
      .invokeMethod<bool>(
          'openAppSettings', <String, String>{'package_name': packageName})
      .then((bool? value) => value ?? false)
      .catchError((dynamic err) => false);
}