TemplateBloc class abstract

Inheritance

Constructors

TemplateBloc(BaseAnalytics analytics, {List<Type>? analyticFrameworkTypes})

Properties

analyticFrameworkTypes List<Type>?
final
analytics BaseAnalytics
final
baseState Stream<BaseBlocPrimaryState>
used by the BaseWidget to listen to the bloc BaseBlocPrimaryState states
no setterinherited
event Sink<BaseBlocEvent>
used by the BaseWidget add BaseBlocEvents BaseBlocEvent must be extended
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sinkState Sink<BaseBlocPrimaryState>?
no setterinherited

Methods

addEvent(BaseBlocEvent event) → void
Used in the BaseWidgetImplementation
afterWidgetBinding() Future<void>
Called by the BaseWidget after the widget has been displayed
inherited
dispose() → dynamic
inherited
getStreamOfType<T extends BaseBlocDataState>() Stream<T>
Use this to listen events emitted by the BaseBloc
inherited
logEvent(String name, {Map<String, dynamic>? properties, List<Type>? sendTo}) → void
Useful function to log an event without using the analytics directly
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUiDataChange(BaseBlocEvent event) → void
Events emitted by the widget bloc.event.add(BaseBlocEvent(data)) will be captured here
inherited
postUiEvent(BaseBlocEvent event) → void
this will automatically send the event received from the UI to your analytics implementation if you passed the type list to your Template bloc when extending it
override
registerStreams(List<Stream> streams) → void
register streams that extend BaseBlocDataState to _secondaryStreams You can listen to them from the widget side within a StreamBuilder get the reference stream using bloc.getStreamOfType
inherited
toString() String
A string representation of this object.
inherited

Operators

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