SplitTime constructor Null safety
Split time
Implementation
SplitTime({
String? created,
required this.runTime,
required this.averageSpeed,
required this.distance,
required this.runId,
this.location,
this.locationsCount = 0,
this.cheat,
this.meta = const <String, String>{},
String? id,
String? eventId,
}) : id = id ?? const Uuid().v4(),
created = created ?? DateTime.now().toIso8601String(),
eventId = eventId ?? EngineConfig.name;