FlutterWindowClose class
A plug-in that helps your Flutter desktop app to handle window close event.
It supports Windows, macOS and Linux.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
closeWindow(
) → Future< void> - Sends a message to close the window hosting your Flutter app.
-
destroyWindow(
) → Future< void> -
setWebReturnValue(
String? returnValue) → Future< void> - Sets a return value when the current window or tab is being closed when your app is running in Flutter Web.
-
setWindowShouldCloseHandler(
Future< bool> handler()?) → Future<void> - Sets a function to handle window close events.