Skip to content

Instantly share code, notes, and snippets.

@viveky259259
Last active September 30, 2019 14:47
Show Gist options
  • Save viveky259259/37aa58c38c92b8fde7cf28db490dd9fa to your computer and use it in GitHub Desktop.
Save viveky259259/37aa58c38c92b8fde7cf28db490dd9fa to your computer and use it in GitHub Desktop.
NoteStorage class
import 'package:flutter_for_people/bloc/notes/note.model.dart';
class NoteStorage {
List<NoteModel> _noteModels = [
NoteModel("Chemistry", "Get book from general store"),
NoteModel("Physics", "Read reference book"),
NoteModel("Maths", "It's really hard bro, if you don't study"),
NoteModel("Football", "Match at 8'o' clock"),
];
List<NoteModel> get notes => _noteModels;
}
NoteStorage noteStorage = NoteStorage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment