mirrored_repositories/flutter_learning/18_todo_mobx/lib
import 'package:mobx/mobx.dart';
import 'package:todo_mobx/models/todo.model.dart';
part 'todo.store.g.dart';

class TodoStore = _TodoStore with _$TodoStore;

abstract class _TodoStore with Store {
  @observable
  var todos = ObservableList<Todo>();

  @action
  void add(Todo todo) {
    todos.add(todo);
  }

}