TextWidthBasis enum

The different ways of considering the width of one or more lines of text.

See Text.widthType.

Constants

longestLine → const TextWidthBasis

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

const TextWidthBasis(1)
parent → const TextWidthBasis

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.

const TextWidthBasis(0)
values → const List<TextWidthBasis>

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

const List<TextWidthBasis>

Properties

index int

The integer index of this enum.

final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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