flutter_exit_windows_ex
Logs off the interactive user, shuts down the system
Install
dependencies:
flutter_exit_windows_ex:
Example
Shutdown:
import 'package:flutter_exit_windows_ex/flutter_exit_windows_ex.dart';
await FlutterExitWindowsEx.exitWindowsEx(EWX_SHUTDOWN);
Logoff:
import 'package:flutter_exit_windows_ex/flutter_exit_windows_ex.dart';
await FlutterExitWindowsEx.exitWindowsEx(EWX_LOGOFF);
Reboot:
import 'package:flutter_exit_windows_ex/flutter_exit_windows_ex.dart';
await FlutterExitWindowsEx.exitWindowsEx(EWX_REBOOT);
创建指令
λ flutter create -t plugin --platforms windows --org com.ajanuw --project-name flutter_exit_windows_ex ./
See also: