ScopeEvent
class
Used by Scope.$on to notify the listeners of events.
class ScopeEvent {
String name;
Scope targetScope;
Scope currentScope;
bool propagationStopped = false;
bool defaultPrevented = false;
ScopeEvent(this.name, this.targetScope);
stopPropagation () => propagationStopped = true;
preventDefault() => defaultPrevented = true;
}
Constructors
new ScopeEvent(String name, Scope targetScope) #
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.
docs inherited from Object
ScopeEvent(this.name, this.targetScope);
Properties
bool defaultPrevented #
bool defaultPrevented = false
bool propagationStopped #
bool propagationStopped = false
Methods
dynamic preventDefault() #
preventDefault() => defaultPrevented = true;
dynamic stopPropagation() #
stopPropagation () => propagationStopped = true;