TrackedSubject<T, S extends Subject<T> > class
Wrapper returned by Subject.track() that preserves the original Subject
subtype and unlocks enableInjection.
Constructors
- TrackedSubject(S _subject, StreamIdentifier? identifier)
-
Creates a wrapper around
_subject. Prefer calling.track()rather than constructing this directly.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → StreamIdentifier?
-
Runtime identifier the DevTools panel uses to address this subject.
nullin release builds (where tracking is disabled).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asSubject(
) → S -
Returns the underlying Subject (preserving its subtype — e.g.
BehaviorSubject<int>stays aBehaviorSubject<int>). -
enableInjection(
{required T? parse(String raw)}) → TrackedSubject< T, S> - Allows the DevTools panel to push values into the wrapped subject.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited