Window class
- Implementers
Constructors
- Window(WindowHandle handle)
Properties
- closeEvent → VoidEvent
-
final
- closeRequestEvent → VoidEvent
-
final
- handle → WindowHandle
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
visibilityChangedEvent
→ Event<
bool> -
final
-
windowStateFlagsEvent
→ Event<
WindowStateFlags> -
final
Methods
-
activate(
{bool activateApplication = true}) → Future< bool> -
callMethod(
String method, [dynamic argument]) → Future -
close(
) → Future< void> -
deactivate(
{bool deactivateApplication = false}) → Future< bool> -
getGeometry(
) → Future< Geometry> -
getScreen(
) → Future< Screen?> -
getWindowStateFlags(
) → Future< WindowStateFlags> -
hide(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage(
String message, dynamic arguments) → void -
restorePositionFromString(
String position) → Future< void> -
savePositionToString(
) → Future< String> -
setCollectionBehavior(
WindowCollectionBehavior behavior) → Future< void> -
setFullScreen(
bool fullScreen) → Future< void> -
If
fullScreen
istrue
and window is currently not full screen, toggles fullscreen mode. Only applicable on platforms that support full screen modes. -
setGeometry(
Geometry request, [GeometryPreference preference = GeometryPreference.preferContent]) → Future< GeometryFlags> -
setMaximized(
bool maximized) → Future< void> -
If
maximized
istrue
and window is currently not maximized, maximizes the window. -
setMinimized(
bool minimized) → Future< void> -
If
minimized
istrue
and window is currently not minimized, minimizes the window. -
setStyle(
WindowStyle style) → Future< void> -
setTitle(
String title) → Future< void> -
show(
) → Future< void> -
showModal(
) → Future -
supportedGeometry(
) → Future< GeometryFlags> -
toString(
) → String -
A string representation of this object.
inherited
-
waitUntilInitialized(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
dynamic initData, {bool invisibleWindowHint = false}) → Future< Window> -
fromHandle(
WindowHandle handle) → Window? -
maybeOf(
BuildContext context) → LocalWindow? -
of(
BuildContext context) → LocalWindow