BsColConfig class

Defines how many of the 12 columns a column occupies — per breakpoint.

If null for a breakpoint, it inherits from the next smaller configured breakpoint (mobile-first behavior). If all are null, it resolves to auto-width.

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: applies the same column span across all breakpoints.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
lg int?
Column span for large screens (>= 992px).
final
md int?
Column span for medium screens (>= 768px).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sm int?
Column span for small screens (>= 576px).
final
xl int?
Column span for extra large screens (>= 1200px).
final
xs int?
Column span for extra small screens (< 576px).
final
xxl int?
Column 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 column span for a given layout width.
toString() String
A string representation of this object.
inherited

Operators

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