BreakpointsQualifier class
- Inheritance
-
- Object
- ScreenSizeQualifier
- BreakpointsQualifier
Constructors
- BreakpointsQualifier({num? smallBreakpoint, num? mediumBreakpoint})
-
The default qualifier that will fall back to
400for ScreenSize.small screens and600for ScreenSize.medium, all the rest will be treated as ScreenSize.large Optionally you can override the defaults be wrapping your widget tree with BreakpointsSetting
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediumBreakpoint → num?
-
ScreenSize.medium to ScreenSize.large breakpoint size. Defaults to
600final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- smallBreakpoint → num?
-
ScreenSize.small to ScreenSize.medium breakpoint size. Defaults to
400final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
qualify(
BuildContext context) → ScreenSize -
The qualification has to be implemented here. Default (BreakpointsQualifier) implementation will simply extract the smallest side's size from the MediaQuery and apply breakpoints to it
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited