openAccessUsageSettings method
Implementation
Future<void> openAccessUsageSettings(UsageSetting settings) async {
// Platform messages may fail, so we use a try/catch PlatformException.
// We also handle the message potentially returning null.
try {
await _helloPlugin.openUsageAccessSettings(settings);
// ignore: empty_catches
} on PlatformException {}
// If the widget was removed from the tree while the asynchronous platform
// message was in flight, we want to discard the reply rather than calling
// setState to update our non-existent appearance.
}