Logs off the interactive user, shuts down the system
dependencies:
flutter_exit_windows_ex:
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: