A rectangle enclosing a run of text.

Constructors

TextBox.fromLTRBD(double left, double top, double right, double bottom, TextDirection direction)

const

Properties

bottom → double

The bottom edge of the text box.

read-only
direction → TextDirection

The direction in which text inside this box flows.

read-only
end → double

The right edge of the box for ltr text; the left edge of the box for rtl text.

read-only
hashCode → int

read-only
left → double

The left edge of the text box, irrespective of direction.

read-only

The right edge of the text box, irrespective of direction.

read-only
start → double

The left edge of the box for ltr text; the right edge of the box for rtl text.

read-only
top → double

The top edge of the text box.

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

Methods

toRect() → Rect

Returns a rect of the same size as this box.

toString() → String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited