getBatchLocation method

Future<List<LocationDataModel>> getBatchLocation(
  1. int limit
)

Implementation

Future<List<LocationDataModel>> getBatchLocation(int limit) async {
  final db = await database;
  final maps = await db.query('locations', limit: limit, orderBy: 'id ASC');
  return maps.map(_rowToLocation).toList();
}