Effect<Value>.cancel constructor
const
Effect<Value>.cancel ({
- required EffectID id,
Requests cancellation for any in-flight effect registered with id. This
is the counterpart to Effect.cancellable.
Example:
final cancelSearch = Effect<void>.cancel(id: "search");
Implementation
const factory Effect.cancel({required EffectID id}) = CancelEffect<Value>;