openSystemSetting method
跳转到系统设置页面 settingType 仅对android 有效
Implementation
Future<bool> openSystemSetting(
{AndroidSettingPath? path, MacOSSettingPath? macPath}) async {
if (supportPlatform) {
String? data;
if (isAndroid) {
final List<String> type =
(path ?? AndroidSettingPath.setting).toString().split('.');
data = type[1];
} else if (isMacOS) {
data = macOSSettingPathToString(
macPath ?? MacOSSettingPath.accessibilityMain);
}
final bool? state = await channel.invokeMethod('openSystemSetting', data);
return state ?? false;
}
return false;
}