openAppSettings method

  1. @override
Future<void> openAppSettings(
  1. String packageName
)
override

Open the settings for an app with a given package name.

Implementation

@override
Future<void> openAppSettings(String packageName) async {
  try {
    await methodChannel.invokeMethod('openAppSettings', {
      'packageName': packageName,
    });
  } on PlatformException catch (e) {
    throw Exception('Failed to open app settings: ${e.message}');
  }
}