TextAlignHorizontal class
The horizontal alignment of vertical Mongolian text within an input box.
A single x value that can range from -1.0 to 1.0. -1.0 aligns to the left side of an input box so that the left side of the first line of text fits within the box and its padding. 0.0 aligns to the center of the box. 1.0 aligns so that the right side of the last line of text aligns with the right interior edge of the input box.
See also:
- TextAlignVertical, which is the TextField version for horizontal text
- MongolTextField.textAlignHorizontal, which is passed on to the
MongolInputDecorator
. MongolInputDecorator.textAlignHorizontal
, which defines the alignment of prefix, input, and suffix within anMongolInputDecorator
.
Constructors
- TextAlignHorizontal({required double x})
-
Creates a TextAlignHorizontal from any x value between -1.0 and 1.0.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → double
-
A value ranging from -1.0 to 1.0 that defines the leftmost and rightmost
locations of the left and right sides of the input box.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- center → const TextAlignHorizontal
- Aligns a MongolTextField's input text to the center of the MongolTextField.
- left → const TextAlignHorizontal
- Aligns a MongolTextField's input text with the leftmost location within a MongolTextField's input box.
- right → const TextAlignHorizontal
- Aligns a MongolTextField's input text with the rightmost location within a MongolTextField.