openAppSettings method

  1. @override
Future<bool> openAppSettings()
override

Opens the application settings screen in the operating system.

Implementation

@override
Future<bool> openAppSettings() async {
  if (Platform.isIOS) {
    // On iOS, the permissions are not required for USSD, so we can return false.
    return false;
  }
  final bool? opened = await methodChannel.invokeMethod('openAppSettings');
  return opened ?? false;
}