ResultEvent<TResult> class
abstract
Base class for events that return typed results.
Each event instance carries its own Completer, ensuring concurrent operations never interfere with each other's results.
- Inheritance
- Implementers
Constructors
-
ResultEvent({Set<
String> ? groupsToRebuild})
Properties
-
groupsToRebuild
↔ Set<
String> ? -
The set of widget rebuild groups this event should trigger.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCompleted → bool
-
Whether this event's result has been completed.
no setter
-
result
→ Future<
TResult> -
The future that completes when the use case finishes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Called when the event is disposed.
inherited
-
fail(
Object error, [StackTrace? stackTrace]) → void - Complete the result with an error.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
succeed(
TResult value) → void -
Complete the result successfully with
value. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited