WindowSnapStrategy class
Configuration for window snapping behavior and positioning.
Defines how windows should snap to screen edges or specific regions, including the target bounds and whether the window should be minimized during the snap operation.
Example:
WindowSnapStrategy(
relativeBounds: Rect.fromLTWH(0, 0, 0.5, 1), // Left half of screen
shouldMinifyWindow: false,
)
Constructors
- WindowSnapStrategy.new({required Rect relativeBounds, bool shouldMinifyWindow = true})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- relativeBounds → Rect
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldMinifyWindow → bool
-
final
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