Event class

Constructors

Event()
Event.fromJS(Event _wrapped)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJS → Event
no setter

Methods

addListener(JSFunction callback) → void
Registers an event listener callback to an event. callback Called when an event occurs. The parameters of this function depend on the type of event.
addRules(String eventName, int webViewInstanceId, List<Rule> rules) Future<List<Rule>>
Registers rules to handle events. eventName Name of the event this function affects. webViewInstanceId If provided, this is an integer that uniquely identfies the
getRules(String eventName, int webViewInstanceId, List<String>? ruleIdentifiers) Future<List<Rule>>
Returns currently registered rules. eventName Name of the event this function affects. webViewInstanceId If provided, this is an integer that uniquely identfies the
hasListener(JSFunction callback) bool
callback Listener whose registration status shall be tested. returns True if callback is registered to the event.
hasListeners() bool
returns True if any event listeners are registered to the event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(JSFunction callback) → void
Deregisters an event listener callback from an event. callback Listener that shall be unregistered.
removeRules(String eventName, int webViewInstanceId, List<String>? ruleIdentifiers) Future<void>
Unregisters currently registered rules. eventName Name of the event this function affects. webViewInstanceId If provided, this is an integer that uniquely identfies the
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited