Created
January 9, 2019 01:50
-
-
Save lawreyios/1c89cdaad13177f4d58f617e384973a9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@override | |
void initState() { | |
super.initState(); | |
_records.records = new List(); | |
_filteredRecords.records = new List(); | |
_getRecords(); | |
} | |
void _getRecords() async { | |
RecordList records = await RecordService().loadRecords(); | |
setState(() { | |
for (Record record in records.records) { | |
this._records.records.add(record); | |
this._filteredRecords.records.add(record); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment