Skip to content

Instantly share code, notes, and snippets.

@lukaszciastko
Created June 2, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszciastko/4d12e8a8a8d76ee4e73a375ce83f63d9 to your computer and use it in GitHub Desktop.
Save lukaszciastko/4d12e8a8a8d76ee4e73a375ce83f63d9 to your computer and use it in GitHub Desktop.
import 'package:view_model/view_model.dart';
import 'package:view_model_tasks/task.dart';
class TaskListViewModel extends ViewModel {
final List<Task> tasks = <Task>[
const Task(id: 0, name: 'Create a new Flutter app'),
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment