Last active
June 4, 2019 05:25
-
-
Save felangel/3f5b5b64e524474d0641e4111926ed53 to your computer and use it in GitHub Desktop.
[flutter_infinite_list] post bloc initialState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:bloc/bloc.dart'; | |
import 'package:meta/meta.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:flutter_infinite_list/bloc/bloc.dart'; | |
import 'package:flutter_infinite_list/models/models.dart'; | |
class PostBloc extends Bloc<PostEvent, PostState> { | |
final http.Client httpClient; | |
PostBloc({@required this.httpClient}); | |
@override | |
PostState get initialState => PostUninitialized(); | |
@override | |
Stream<PostState> mapEventToState( | |
PostEvent event, | |
) async* { | |
// TODO: implement mapEventToState | |
yield null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment