Skip to content

Instantly share code, notes, and snippets.

@felangel felangel/simple_bloc.dart
Last active Oct 14, 2018

What would you like to do?
[bloc_package] simple bloc example
import 'dart:async';
import 'package:bloc/bloc.dart';
class SimpleBloc extends Bloc<dynamic, String> {
Stream<String> mapEventToState(String state, dynamic event) async* {
yield 'state';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.