Last active
October 16, 2019 11:33
-
-
Save viveky259259/db56396b0da4387b20f92fdcb4853a4b to your computer and use it in GitHub Desktop.
BLoC Pattern for flutter -Part 3
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:flutter_for_people/bloc/notes/note.model.dart'; | |
class NoteState {} | |
///list of States | |
///1.Fetching 2.FetchingComplete 3. EmptyState 4. InitialState | |
class FetchingNoteState extends NoteState {} | |
class FetchingNoteCompleteState extends NoteState { | |
List<NoteModel> notes; | |
FetchingNoteCompleteState(this.notes); | |
} | |
class AddingNoteInProgressState extends NoteState {} | |
class AddingNoteCompleteState extends NoteState {} | |
class EmptyNoteState extends NoteState {} | |
class InitialNoteState extends NoteState {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment