WrapFit enum Null safety

Constants

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.

const WrapFit(1)
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.
const WrapFit(3)
min → const WrapFit

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

const WrapFit(0)
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.

const WrapFit(2)
values → const List<WrapFit>

A constant List of the values in this enum, in order of their declaration.

const List<WrapFit>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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