TextEvent
class
class TextEvent extends Event {
static const String LINK = "link";
static const String TEXT_INPUT = "textInput";
//-------------------------------------------------------------------------------------------------
String _text = "";
TextEvent(String type, [bool bubbles = false]) : super(type, bubbles);
//-------------------------------------------------------------------------------------------------
String get text => _text;
}
Extends
Event > TextEvent
Static Properties
const String LINK #
static const String LINK = "link"
const String TEXT_INPUT #
static const String TEXT_INPUT = "textInput"
Constructors
new TextEvent(String type, [bool bubbles = false]) #
Creates a new Object instance.
Object instances have no meaningful state, and are only useful
through their identity. An Object instance is equal to itself
only.
TextEvent(String type, [bool bubbles = false]) : super(type, bubbles);
Properties
final bool bubbles #
bool get bubbles => _bubbles;
final bool captures #
bool get captures => true;
EventDispatcher get currentTarget => _currentTarget;
final int eventPhase #
int get eventPhase => _eventPhase;
bool get stopsImmediatePropagation => _stopsImmediatePropagation;
final bool stopsPropagation #
bool get stopsPropagation => _stopsPropagation;
EventDispatcher get target => _target;
final String text #
String get text => _text;
final String type #
String get type => _type;
Methods
void stopImmediatePropagation() {
_stopsPropagation = true;
_stopsImmediatePropagation = true;
}
void stopPropagation() #
void stopPropagation() {
_stopsPropagation = true;
}