flatMap<NewValue> method
For each emitted value, invokes mapper to create another effect and
flattens the resulting sequence into a single stream of values.
Example:
final search = queryEffect.flatMap((query) => performSearch(query));
Implementation
Effect<NewValue> flatMap<NewValue>(
Effect<NewValue> Function(Value value) mapper,
) =>
FlatMappedEffect<NewValue, Value>(effect: this, mapping: mapper);