Last active
June 4, 2019 05:26
-
-
Save felangel/21a79e7d160d965a007b669124a61fac to your computer and use it in GitHub Desktop.
[flutter_infinite_list] empty post bloc
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 | |
// TODO: implement initialState | |
PostState get initialState => null; | |
@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