-
-
Save Djsmk123/0cccdde78924e7505446083a6049247c to your computer and use it in GitHub Desktop.
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:hydated_bloc_example/Data/Model/todo_model.dart'; | |
sealed class TodoEvent {} | |
final class TodoFetch extends TodoEvent {} | |
final class TodoAdd extends TodoEvent { | |
final TodoModel task; | |
TodoAdd(this.task); | |
} | |
final class TodoRemove extends TodoEvent { | |
final int id; | |
TodoRemove(this.id); | |
} | |
final class TodoUpdate extends TodoEvent { | |
final int id; | |
final bool status; | |
TodoUpdate(this.id, this.status); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment