openAppSettings 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) async {
  if (packageName.isEmpty) {
    throw Exception('The package name can not be empty');
  }

  return await _channel.invokeMethod(
      'openAppSettings', <String, String>{'package_name': packageName});
}