TextEvent class

An object dispatches a TextEvent object when a user enters text in a text field or clicks a hyperlink in an HTML-enabled text field.

There are two types of text events:

Inheritance

Constructors

TextEvent(String type, bool bubbles, String text)
Creates a new TextEvent.

Properties

isDefaultPrevented → bool
read-only
text → String
For a TEXT_INPUT event, the character or sequence of characters entered by the user. For a LINK event, the text of the event attribute of the href attribute of the tag.
final
bubbles → bool
Indicates whether an event is a bubbling event. If the event can bubble, this value is true; otherwise it is false. [...]
read-only, inherited
captures → bool
Indicates whether an event is a capturing event.
read-only, inherited
currentTarget EventDispatcher
The object that is actively processing the Event object with an event listener. [...]
read-only, inherited
eventPhase EventPhase
The current phase in the event flow. [...]
read-only, inherited
hashCode → int
The hash code for this object.
read-only, inherited
isImmediatePropagationStopped → bool
Indicates if the propagation of this event has been stopped. [...]
read-only, inherited
isPropagationStopped → bool
Indicates if the propagation of this event has been stopped. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
target EventDispatcher
The event target. [...]
read-only, inherited
type → String
The type of event.
read-only, inherited

Methods

preventDefault() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
stopImmediatePropagation() → void
Prevents processing of any event listeners in the current node and any subsequent nodes in the event flow. [...]
inherited
stopPropagation() → void
Prevents processing of any event listeners in nodes subsequent to the current node in the event flow. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

'link'
TEXT_INPUT → const String
'textInput'