TextAlignVertical class

The vertical alignment of text within an input.

A single y value that can range from -1.0 to 1.0. -1.0 aligns to the top of the input so that the top of the first line of text fits within the input and its padding. 0.0 aligns to the center of the input. 1.0 aligns so that the bottom of the last line of text aligns with the bottom interior edge of the input.

See also:

Constructors

TextAlignVertical({@required double y })
Construct TextAlignVertical from any given y value.
const

Properties

y double
A value ranging from -1.0 to 1.0 that defines the topmost and bottommost locations of the top and bottom of the input text box.
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

Constants

bottom → const TextAlignVertical
Aligns a TextField's input Text with the bottommost location within the TextField.
const TextAlignVertical(y: 1.0)
center → const TextAlignVertical
Aligns a TextField's input Text to the center of the TextField.
const TextAlignVertical(y: 0.0)
top → const TextAlignVertical
Aligns a TextField's input Text with the topmost location within the TextField.
const TextAlignVertical(y: -1.0)