Window class
Window
Primary class to control Flutter instance window.
Constructors
- Window()
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
-
acknowledgeMouseEvents(
) → Future< void> - Makes the window acknowledge mouse events (macOS only).
-
addEmptyMaskImage(
) → Future< void> - Adds an empty mask image to the window's view (macOS only).
-
addToolbar(
) → Future< void> - Adds a toolbar to the window (macOS only).
-
addVisualEffectSubview(
VisualEffectSubviewProperties properties) → Future< int> - Adds a visual effect subview to the application's window and returns its ID.
-
disableCloseButton(
) → Future< void> - Disables the window's close button.
-
disableFullSizeContentView(
) → Future< void> - Disables the window's full-size content view.
-
disableMiniaturizeButton(
) → Future< void> - Disables the window's miniaturize button.
-
disableShadow(
) → Future< void> - Disables the window's shadow (macOS only).
-
disableZoomButton(
) → Future< void> - Disables the window's zoom button.
-
enableCloseButton(
) → Future< void> - Enables the window's close button.
-
enableFullSizeContentView(
) → Future< void> - Enables the window's full-size content view.
-
enableMiniaturizeButton(
) → Future< void> - Enables the window's miniaturize button.
-
enableShadow(
) → Future< void> - Enables the window's shadow (macOS only).
-
enableZoomButton(
) → Future< void> - Enables the window's zoom button.
-
enterFullscreen(
) → Future< void> - Makes the Flutter window fullscreen.
-
exitFullscreen(
) → Future< void> - Restores the Flutter window back to normal from fullscreen mode.
-
getTitlebarHeight(
) → Future< double> - Gets the height of the titlebar.
-
hideCloseButton(
) → Future< void> - Hides the window's close button.
-
hideMiniaturizeButton(
) → Future< void> - Hides the window's miniaturize button.
-
hideTitle(
) → Future< void> - Hides the titlebar of the window.
-
hideWindowControls(
) → Future< void> - Hides window controls.
-
hideZoomButton(
) → Future< void> - Hides the window's zoom button.
-
ignoreMouseEvents(
) → Future< void> - Makes the window ignore mouse events (macOS only).
-
initialize(
) → Future< void> - Initializes the Window class.
-
invalidateShadows(
) → Future< void> - Invalidates the window's shadow (macOS only).
-
isWindowFullscreened(
) → Future< bool> - Returns if the window is fullscreened.
-
isWindowInLiveResize(
) → Future< bool> - Gets whether the window is currently being resized by the user.
-
isWindowVisible(
) → Future< bool> - Gets if the window is visible.
-
isWindowZoomed(
) → Future< bool> - Returns if the window is zoomed.
-
makeTitlebarOpaque(
) → Future< void> - Makes the window's titlebar opaque.
-
makeTitlebarTransparent(
) → Future< void> - Makes the window's titlebar transparent.
-
makeWindowFullyTransparent(
) → void - Makes a window fully transparent (with no blur effect) (macOS only).
-
overrideMacOSBrightness(
{required bool dark}) → Future< void> - Overrides the brightness setting of the window (macOS only).
-
removeMaskImage(
) → Future< void> - Removes the window's mask image (macOS only).
-
removeToolbar(
) → Future< void> - Removes the window's toolbar (macOS only).
-
removeVisualEffectSubview(
int visualEffectSubviewId) → Future< void> - Removes a visual effect subview from the application's window.
-
setBlurViewState(
MacOSBlurViewState state) → Future< void> - Sets the blur view state.
-
setDocumentEdited(
) → Future< void> - Sets the document to be edited.
-
setDocumentUnedited(
) → Future< void> - Sets the document to be unedited.
-
setEffect(
{required WindowEffect effect, Color color = Colors.transparent, bool dark = true}) → Future< void> - Sets specified effect for the window.
-
setRepresentedFilename(
String filename) → Future< void> - Sets the represented file of the window.
-
setRepresentedUrl(
String url) → Future< void> - Sets the represented URL of the window.
-
setSubtitle(
String subtitle) → Future< void> - Sets the subtitle of the window (macOS only).
-
setToolbarStyle(
{required MacOSToolbarStyle toolbarStyle}) → Future< void> - Sets the window's toolbar style (macOS only).
-
setWindowAlphaValue(
double value) → Future< void> - Sets the window's alpha value.
-
setWindowBackgroundColorToClear(
) → Future< void> - Sets the window background color to clear.
-
setWindowBackgroundColorToDefaultColor(
) → Future< void> - Sets the window background color to the default (opaque) window color.
-
showCloseButton(
) → Future< void> - Shows the window's close button.
-
showMiniaturizeButton(
) → Future< void> - Shows the window's miniaturize button.
-
showTitle(
) → Future< void> - Shows the titlebar of the window.
-
showWindowControls(
) → Future< void> - Shows window controls.
-
showZoomButton(
) → Future< void> - Shows the window's zoom button.
-
unzoomWindow(
) → Future< void> - Unzooms the window.
-
updateVisualEffectSubviewProperties(
int visualEffectSubviewId, VisualEffectSubviewProperties properties) → Future< void> - Updates the properties of a visual effect subview.
-
zoomWindow(
) → Future< void> - Zooms the window.