WrapFit enum

Inheritance

Constructors

WrapFit()
const

Values

min → const WrapFit

Will keep each widget's original width. This is the default.

divided → const WrapFit

After the calculation, will make widgets fit all the available space. All widgets in a line will have the same width, even if it makes them smaller that their original width.

proportional → const WrapFit

After the calculation, will make widgets larger, so that they fit all the available space. Widgets width will be proportional to their original width.

larger → const WrapFit

After the calculation, will make widgets larger, so that they fit all the available space. Will try to make all widgets the same width, but won't make any widgets smaller than their original width.

The procedure is this:

  1. First, divide the available line width by the number of widgets in the line. That is the preferred width.
  2. Keep the width of all widgets larger than that preferred width.
  3. Calculate the remaining width and divide it equally by the remaining widgets.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.
inherited

Operators

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

Constants

values → const List<WrapFit>
A constant List of the values in this enum, in order of their declaration.