SizeFit enum

Represents the type of sizing a node can have on either axis.

Inheritance
Available extensions

Values

locked → const SizeFit

Defines locked size fit. It does nothing right now.

fixed → const SizeFit

The node has fixed size on applied axis. This is the default value. This means that no external factors can change the size of the node.

expanded → const SizeFit

Allows the node to grow to fit its parent on the applied axis. This is controlled by the node parent to determine how much space the node can have.

flexible → const SizeFit

Allows the node to shrink to fit its parent on the applied axis if the parent cannot allow the node to be of its own size. This would make the node take exact amount of space it requires on applied axis if available or shrink to fit if not available.

shrinkWrap → const SizeFit

Allows the node to only grow to fit its children inside. This is not affected by its parent but rather its children.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isFill bool
Whether this SizeFit is expanded.
no setter
isFixed bool
Whether this SizeFit is fixed.
no setter
isFlex bool
Whether this SizeFit allows the node to flex.
no setter
isFlexible bool
Whether this SizeFit is flexible.
no setter
isWrap bool
Whether this SizeFit is wrapping.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<SizeFit>
A constant List of the values in this enum, in order of their declaration.