WindowSnapStrategy constructor

const WindowSnapStrategy({
  1. required Rect relativeBounds,
  2. bool shouldMinifyWindow = true,
})

Creates a window snap strategy with the specified bounds and behavior.

Parameters:

  • relativeBounds: Target screen region (required, in 0.0-1.0 coordinates)
  • shouldMinifyWindow: Whether to minimize during snap (defaults to true)

Implementation

const WindowSnapStrategy({
  required this.relativeBounds,
  this.shouldMinifyWindow = true,
});