20 lines
314 B
Dart
20 lines
314 B
Dart
import '../../location.dart';
|
|
|
|
abstract class LocationRepository {
|
|
// Create
|
|
|
|
Future<void> createLocation(Location location);
|
|
|
|
// Read
|
|
|
|
Future<List<Location>> loadLocations();
|
|
|
|
// Update
|
|
|
|
Future<void> updateLocation(Location location);
|
|
|
|
// Delete
|
|
|
|
Future<void> deleteLocation(Location location);
|
|
}
|