ScopeObserver class debug

Hooks called as scopes and their dependencies live and die.

Assign one to ScopeConfig.observer. Every hook is empty, so a subclass overrides only what it needs. Hooks are called synchronously, from the build, the initialization or the teardown they belong to; a hook that throws is reported through FlutterError.reportError and does not reach the scope.

This is a base class, so an observer of your own is declared base, final or sealed — final unless you mean it to be extended further.

Implementers

Constructors

ScopeObserver()
Creates an observer that does nothing.
const

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCancelled(ScopeObservable target) → void
An initialization was cancelled before it finished.
onDisposalProgress(ScopeObservable target, String path) → void
One step of a disposal is done; path names the dependency released.
onDisposalStepStarted(ScopeObservable target, String path) → void
One step of a disposal has begun; path names it.
onDispose(ScopeObservable target) → void
A teardown has begun.
onDisposed(ScopeObservable target) → void
A teardown has finished.
onError(ScopeObservable target, ScopePhase phase, Object error, StackTrace? stackTrace) → void
Something failed; phase says what was running.
onInit(ScopeObservable target) → void
An initialization has begun.
onProgress(ScopeObservable target, Object? progress) → void
One step of an initialization is done.
onReady(ScopeObservable target) → void
An initialization has finished successfully.
onStepStarted(ScopeObservable target, String path) → void
One step of an initialization has begun; path names it.
onTimeout(ScopeObservable target, String what, TimeoutException error, StackTrace stackTrace) → void
A bounded wait expired; what names what was waited for.
onTrace(ScopeObservable target, String message) → void
A step of the machinery below the lifecycle.
toString() → String
A string representation of this object.
inherited

Operators

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