Skip to content

Instantly share code, notes, and snippets.

View axellebot's full-sized avatar
❤️

Axel Le Bot axellebot

❤️
View GitHub Profile
@axellebot
axellebot / bloc_a.dart
Created April 30, 2019 19:58
BlocListener Notifications
import 'package:bloc/bloc.dart';
class BlocA extends Bloc<BlocATriggered, BlocAState> {
@override
BlocAState get initialState => BlocAUninitialized();
@override
Stream<BlocAState> mapEventToState(BlocAEvent event) async* {
if (event is BlocATriggered) {
yield BlocALoading();