BreakpointUtils extension
Properties
- breakpoint → Breakpoint
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - isAtLeastDesktop → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - isAtLeastTablet → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - isDesktop → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - isMobile → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - isTablet → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - isTight → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
True when both axes are tightly constrained.no setter - isUnboundedHeight → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
True when height is unbounded.no setter - isUnboundedWidth → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
True when width is unbounded (e.g. inside a scrollable).no setter - isWidescreen → bool
-
Available on BoxConstraints, provided by the BreakpointUtils extension
no setter - largestSize → Size
-
Available on BoxConstraints, provided by the BreakpointUtils extension
Returns the largest tight Size that fits within these constraints.no setter - smallestSize → Size
-
Available on BoxConstraints, provided by the BreakpointUtils extension
Returns the smallest tight Size that satisfies these constraints.no setter
Methods
-
deflate(
EdgeInsets insets) → BoxConstraints -
Available on BoxConstraints, provided by the BreakpointUtils extension
Adds symmetrical padding to the constraints. -
resolve<
T> ({required T mobile, T? tablet, T? desktop, T? widescreen}) → T -
Available on BoxConstraints, provided by the BreakpointUtils extension
Resolves a value per breakpoint. Falls back up the chain when a tier is omitted (mobile → tablet → desktop → widescreen). -
tightenMaxSize(
Size? size) → BoxConstraints -
Available on BoxConstraints, provided by the BreakpointUtils extension
Clamps constraints tosize, respecting existing min/max bounds.