FSCustomBreakpoints class

Custom breakpoint configuration for advanced theming and responsive design.

Allows customization of breakpoint values for specific design requirements while maintaining the same mobile-first responsive approach.

Example:

const customBreakpoints = FSCustomBreakpoints(
  sm: 600,  // Custom small breakpoint
  lg: 1100, // Custom large breakpoint
);
Available extensions

Constructors

FSCustomBreakpoints({double xs = FSBreakpoints.xs, double sm = FSBreakpoints.sm, double md = FSBreakpoints.md, double lg = FSBreakpoints.lg, double xl = FSBreakpoints.xl, double xxl = FSBreakpoints.xxl})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
lg double
final
md double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sm double
final
xl double
final
xs double
final
xxl double
final

Methods

copyWith({double? xs, double? sm, double? md, double? lg, double? xl, double? xxl}) FSCustomBreakpoints
Create a copy with updated values
getBreakpoint(double screenWidth) FSBreakpoint
Get the current breakpoint based on screen width
isAtLeast(double screenWidth, FSBreakpoint breakpoint) bool

Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension

Check if screen width is at least a specific breakpoint
isBetween(double screenWidth, FSBreakpoint min, FSBreakpoint max) bool

Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension

Check if screen width is between two breakpoints (inclusive)
isBreakpoint(double screenWidth, FSBreakpoint breakpoint) bool

Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension

Check if screen width matches a specific breakpoint
isLessThan(double screenWidth, FSBreakpoint breakpoint) bool

Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension

Check if screen width is less than a specific breakpoint
nextBreakpoint(FSBreakpoint current) FSBreakpoint?

Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension

Get the next larger breakpoint
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previousBreakpoint(FSBreakpoint current) FSBreakpoint?

Available on FSCustomBreakpoints, provided by the FSCustomBreakpointsExtensions extension

Get the previous smaller breakpoint
toString() String
A string representation of this object.
inherited
value(FSBreakpoint breakpoint) double
Get the numeric value for a given breakpoint from custom configuration

Operators

operator ==(Object other) bool
The equality operator.
inherited