ResponsiveBreakpointConfig class
Holds a complete breakpoint configuration (global or local override).
Works like CSS @media breakpoints — define once globally in
ResponsiveInit, override locally with ResponsiveScope.overrideBreakpoints.
Constructors
-
ResponsiveBreakpointConfig(Map<
DeviceType, Breakpoints> breakpoints) -
const
-
ResponsiveBreakpointConfig.fromList(List<
Breakpoints> list) -
Create config from a list of breakpoints (same format as ResponsiveInit).
factory
Properties
-
breakpoints
→ Map<
DeviceType, Breakpoints> -
Map of DeviceType → Breakpoints rule.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getDesignSize(
DeviceType type) → Size? - Get the design size for a given device type.
-
isAutoScale(
DeviceType type) → bool - Whether auto-scaling is enabled for a given device type.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveDeviceType(
double width) → DeviceType -
Resolve which DeviceType a given screen
widthfalls into. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
DeviceType type) → Breakpoints? - Get the Breakpoints entry for a given device type.