Bloc1<T> class

origin: flutter-kitchen-sink/lib/bloc/1.dart author: anovsiradj, opencode-go/glm-5.2 version: 2021-03-11, revised: 2026-08-17

Generic mini-BLoC: broadcast StreamController + sink + optional initialData. Zero-dep (dart:async only). Qualifies D5 "builtin state mgmt". Supersedes pamor DataBloc (non-generic) and kitchen-sink MappedBloc.

Constructors

Bloc1([T? initialData])

Properties

hashCode → int
The hash code for this object.
no setterinherited
initialData → T?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stream → Stream<T>
no setter

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sink(T data) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited