deleteRoute method

Future<void> deleteRoute(
  1. String routeId
)

Deletes a route

Implementation

Future<void> deleteRoute(String routeId) async {
  try {
    await _firestore.collection(_collectionPath).doc(routeId).delete();
  } catch (e) {
    print('Error deleting route: $e');
    rethrow;
  }
}