FancyImp class

Give all power of Fancy Streans to Disposable class. All power are based on Type of generic function, that type can be combined with a key name, that power are:

  • listenOn to listen a stream, without boiler plate of subjec and cancel subscription.
  • dispatchOn to add some value to sink, without any outer code.
  • dispatchAllOn like dispatch, but for multiple values.
  • streamOf get directly instance of stream, without any boiler plate of subjec.
  • dispose will close/cancel everything created.
Implemented types

Constructors

FancyImp()

Properties

hashCode int
The hash code for this object.
no setterinherited
map Map
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTransformOn<T, S>(StreamTransformer<T, S> streamTransformer, {Object? key}) → void
override
dispatchAllOn<T>(Stream<T> values, {Object? key}) → void
override
dispatchErrorOn<T>(Object value, {Object? key}) → void
override
dispatchOn<T>(T value, {Object? key}) → void
override
dispose() → void
Clean/close all necessary (loaded) objects.
override
getDefaultKeyName<T>(T instance) String
listenOn<T>(void onData(T), {Function? onError, void onDone()?, bool? cancelOnError, Object? key}) StreamSubscription<T>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
streamOf<T>({Object? key}) Stream<T>
override
toString() String
A string representation of this object.
inherited

Operators

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