Skip to content

Commit

Permalink
Update sql_helper.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsatishsharma authored May 16, 2023
1 parent 0a9d712 commit de48e5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/sql_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ onCreate Function
static Future<List<Person>> getAllPersons() async {
Database db = await getDataBase();
List<Map<String, dynamic>> personsMap = await db.query(_tableName);
print('''SQlite: ${ personsMap}''');
return List.generate(personsMap.length, (index) {
return Person(
id: personsMap[index]["id"],
Expand Down

0 comments on commit de48e5b

Please sign in to comment.