ColumnSpan class

A ColumnSpan tells the DefaultLayoutFactory how many columns a ResponsiveLayoutCell may span.

There is a min, preferred and max value. The DefaultLayoutFactory will try to use these values, but may also decide to use different values e.g.:

Constructors

ColumnSpan.max(int max, {int? preferred})
ColumnSpan.range({required int min, int? preferred, required int max})
ColumnSpan.remainingWidth({int min = 1, int preferred = remainingColumns})
ColumnSpan.size(int columns)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
max int
max is the maximum number of columns that the ResponsiveLayoutCell must span.
final
min int
min is the minimum number of columns that the ResponsiveLayoutCell must span.
final
preferred int
preferred is the preferred number of columns that the ResponsiveLayoutCell ideally spans.
final
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.
override
validate() → void
The rule is: 1 <= min <= preferred <= max <=remainingColumns.

Operators

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

Constants

remainingColumns → const int
min, preferred and max can have the remainingColumns value, to indicate that the ColumnSpan of a ResponsiveLayoutCell should take the remaining columns.