collections method

  1. @override
Future<List<String>> collections()
override

Implementation

@override
Future<List<String>> collections() async {
  final result = await _database.rawQuery(
    "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name",
  );
  return result.map((row) => row['name'] as String).toList();
}