StacTextWidthBasis enum

Text width calculation basis options.\n///\n/// Determines how the width of text widgets is calculated, affecting\n/// layout behavior for both single-line and multi-line text.

Inheritance
Available extensions

Values

parent → const StacTextWidthBasis

multiline text will take up the full width given by the parent. For single line text, only the minimum amount of width needed to contain the text will be used. A common use case for this is a standard series of paragraphs.

longestLine → const StacTextWidthBasis

The width will be exactly enough to contain the longest line and no longer. A common use case for this is chat bubbles.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<StacTextWidthBasis>
A constant List of the values in this enum, in order of their declaration.