ResponsiveMediaBreakpointConfig class
Configuration class for managing breakpoint settings This class holds the global breakpoint configuration
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
breakpointNames
→ List<
String> -
Get all breakpoint names
no setter
-
customBreakpoints
↔ Map<
String, double> -
Custom breakpoints map
getter/setter pair
- mobileBreakpoint ↔ double
-
Mobile breakpoint threshold
getter/setter pair
- tabletBreakpoint ↔ double
-
Tablet breakpoint threshold
getter/setter pair
Static Methods
-
addBreakpoint(
String name, double width) → void - Add a single custom breakpoint
-
configure(
{Map< String, double> ? customBreakpoints, double? mobileBreakpoint, double? tabletBreakpoint}) → void - Initialize breakpoint configuration Call this method before using ResponsiveMedia.init() or pass these values directly to ResponsiveMedia.init()
-
getBreakpointValue(
String name) → double? - Get breakpoint value by name
-
hasBreakpoint(
String name) → bool - Check if a breakpoint exists
-
removeBreakpoint(
String name) → void - Remove a custom breakpoint
-
reset(
) → void - Reset breakpoint configuration to default values