1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

[compass_app/server] Misc consistency improvements (#2539)

This commit is contained in:
Parker Lougheed
2024-12-05 21:38:44 +08:00
committed by GitHub
parent c3c93a82f5
commit 754ddf0375
5 changed files with 8 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ import '../model/booking/booking.dart';
class BookingApi {
BookingApi() {
// Create a default booking
var destination = Assets.destinations.first;
final destination = Assets.destinations.first;
final activitiesRef = Assets.activities
.where((activity) => activity.destinationRef == destination.ref)
.map((activity) => activity.ref)