fireAndForget<NewValue> method

Effect<NewValue> fireAndForget<NewValue>()

Runs the effect but suppresses any emitted values. Useful for fire-and- forget operations where only the side effects matter.

Example:

final logEffect = Effect.run(() => logger.info("clicked"));
final fireAndForget = logEffect.fireAndForget<void>();

Implementation

Effect<NewValue> fireAndForget<NewValue>() => FireAndForgetEffect<NewValue>(effect: this);