BsOffsetConfig class
Defines how many columns to offset a column by — per breakpoint.
Follows a mobile-first approach where configurations inherit from smaller breakpoints.
Constructors
- BsOffsetConfig({int? xs, int? sm, int? md, int? lg, int? xl, int? xxl})
-
Creates a BsOffsetConfig with optional offsets for each breakpoint.
const
- BsOffsetConfig.all(int offset)
-
Shortcut: applies the same column offset across all breakpoints.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lg → int?
-
Offset span for large screens (>= 992px).
final
- md → int?
-
Offset span for medium screens (>= 768px).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → int?
-
Offset span for small screens (>= 576px).
final
- xl → int?
-
Offset span for extra large screens (>= 1200px).
final
- xs → int?
-
Offset span for extra small screens (< 576px).
final
- xxl → int?
-
Offset span for extra extra large screens (>= 1400px).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveFor(
double width) → int - Resolves the active offset for a given layout width.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited