Dart Documentationangular.coreScopeEvent

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

Scope currentScope #

Scope currentScope

bool defaultPrevented #

bool defaultPrevented = false

String name #

String name

bool propagationStopped #

bool propagationStopped = false

Scope targetScope #

Scope targetScope

Methods

dynamic preventDefault() #

preventDefault() => defaultPrevented = true;

dynamic stopPropagation() #

stopPropagation () => propagationStopped = true;