AdaptiveUtils class

Utilities for ensuring screen size is available before initialization.

This is especially important for web and desktop platforms where the window size may not be immediately available.

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 Properties

isScreenSizeAvailable bool
Checks if the screen size is available.
no setter

Static Methods

ensureScreenSize([FlutterView? window, Duration pollInterval = const Duration(milliseconds: 10)]) Future<void>
Ensures screen size is available before proceeding.
getWindowSize() Size
Gets the current window size synchronously.