BsColConfig class
Defines how many of the 12 columns a column occupies — per breakpoint. null = inherits from the smaller breakpoint (Bootstrap behavior: mobile first).
Constructors
- BsColConfig({int? xs, int? sm, int? md, int? lg, int? xl, int? xxl})
-
Creates a BsColConfig with optional spans for each breakpoint.
const
- BsColConfig.all(int span)
-
Shortcut: same column span on all breakpoints.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lg → int?
-
Span for large screens (>= 992px).
final
- md → int?
-
Span for medium screens (>= 768px).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → int?
-
Span for small screens (>= 576px).
final
- xl → int?
-
Span for extra large screens (>= 1200px).
final
- xs → int?
-
Span for extra small screens (< 576px).
final
- xxl → int?
-
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? - Returns the active column count for a given width. Mobile-first: takes the largest matching breakpoint. Returns null if no configuration is set → "auto" (evenly distributed).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited