startTrip method
- TripConfig config
override
Implementation
@override
Future<void> startTrip(TripConfig config) async {
_methodCalls.add('startTrip');
final now = DateTime.now();
_tripState = TripState(
tripId: config.tripId ?? 'mock-trip',
createdAt: now,
startedAt: now,
startLocation: null,
lastLocation: null,
distanceMeters: 0,
idleSeconds: 0,
maxSpeedKph: 0,
started: true,
ended: false,
);
}