WindowBreakpoint class final

Describes the window configuration for a range of window sizes.

A breakpoint applies when the window size is within [minWidth, maxWidth] and [minHeight, maxHeight] (both inclusive) and the optional orientation, device and platform filters match; filters left null match anything. Breakpoints are evaluated in list order and the first match wins, so adjacent breakpoints may share a boundary value.

const WindowBreakpoint(
  minWidth: 600,
  navigation: NavigationType.sideBar,
  panes: 2,
)

Constructors

WindowBreakpoint({double minHeight = 0, double maxHeight = double.maxFinite, double minWidth = 0, double maxWidth = double.maxFinite, Orientation? orientation, DeviceType? device, PlatformType? platform, NavigationType? navigation, required int panes})
const

Properties

device → DeviceType?
Restricts this breakpoint to one DeviceType; null matches any.
final
hashCode → int
The hash code for this object.
no setteroverride
maxHeight → double
The largest window height, inclusive, at which this breakpoint applies.
final
maxWidth → double
The largest window width, inclusive, at which this breakpoint applies.
final
minHeight → double
The smallest window height, inclusive, at which this breakpoint applies.
final
minWidth → double
The smallest window width, inclusive, at which this breakpoint applies.
final
The navigation style to use while this breakpoint is active, if any.
final
orientation → Orientation?
Restricts this breakpoint to one Orientation; null matches both.
final
panes → int
The number of panes supported while this breakpoint is active.
final
platform → PlatformType?
Restricts this breakpoint to one PlatformType; null matches any.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

inRange({required MediaQueryData mediaQuery, required DeviceType device, required PlatformType platform}) → bool
Whether this breakpoint applies to the window described by mediaQuery running on device and platform.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override