flutter_bloc_annotations library

Classes

BLoC
Specifies a class that will be converted to a BLoC. [...]
BLoCInput
Specifies a BLoC class member is an input stream
BLoCMapper
Specifies a BLoC class member that will be called when data is added to the inputName stream. The return value will be added to the outputName stream.
BLoCOutput
Specifies a BLoC class member is an output stream
BLoCParamater
A paramater that will need to be added to the BLoC class and provided to the provider or disposer.
BLoCRequireBLoCService
Specifies a service to be used by the BLoC and will be provided with the entire BLoC
BLoCRequireInputService
Specifies a service to be used by the BLoC and will contect to the Sink of the controllerName.
BLoCRequireMapperService
Specifies a MapperService class that will be called when data is added to the inputName stream. The return value will be added to the outputName stream. Make sure mapper is imported in the main file so the bloc can access it.
BLoCRequireOutputService
Specifies a service to be used by the BLoC and will contected to the Stream of the controllerName.
BLoCRequireTriggerService
Specified a service to be used by the BLoC and will be available on the BLoC to be called by your app.
BLoCService<T>
A service that taken in an entire BLoC. Useful if you want access to multiple inputs and outputs on the BLoC in one service. Also useful for passing variables to services.
BLoCTemplate
BLoCValue
Specifies a BLoC class member will store the last value of an output stream called outputName
InputService<T>
A service that adds items to a input on a BLoC. init is called when the BLoC starts the service and dispose when the BLoC closes the service.
MapperService<I, O>
A service that acts as a BLoCMapper that can be reused between BLoCs.
OutputService<T>
A service that takes an output from a BLoC. Automatically calles listen when the stream from the BLoC is updated. Optionally init is called when the BLoC starts the service and dispose when the BLoC closes the service.
Service
TriggerService<T>
A service that can be triggered by anything with access to the BLoC. Takes in the entire bloc when triggered. Useful for validating and submitting forms.