ComposedStreams class

A multi streams handler that cover many stream

ComposedStreams.streams list all of the stream class to generate.

You can use ComposedStreams like this:

@ComposedStreams(const [
 LoginStream,
])
class StartAppStream extends _StartAppStreamOrigin {
 @override
 Stream<StreamState> process(StartAppParams params) async* {
   ...
 }
}

to generate

class StartAppError extends StreamError {
  StartAppError(StreamError streamError, ErrorLocation location)
      : super.composeLocation(streamError, location);
}

abstract class _StartAppStreamOrigin {
  LoginStream _loginStream;
  Stream<StreamState> process(StartAppParams params);
}

Constructors

ComposedStreams(List<Type> streams)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
streams List<Type>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited