SplitTime class Null safety
Split time
- Inheritance
 - Implemented types
 - Annotations
 - @DataClass()
 - @JsonSerializable()
 - @ConnectOfflineFirstWithRest(restConfig: const RestSerializable(endpoint: '=> SplitTimeSyncEndpointHelper.restEndpoint(query, instance)', fieldRename: FieldRename.none))
 
Constructors
Properties
- averageSpeed → double
 - 
  The current average speed in km / h 
  final
 - cheat → num?
 - 
  A value between 0.1 and 1.0 indicating how much the user was cheating
during this split-time. [...]
  final
 - created → String
 - 
  The current ISO8601 timestamp of the device - UTC or local time 
  final
 - distance → num
 - 
  The current Distance the user has travelled in meters 
  final
 - eventId → String
 - 
  Event id of the run for which the split time was created 
  @Rest(ignore: true), final
 - hashCode → int
 - 
  The hash code for this object. [...]
  read-only, inherited
 - id → String
 - 
  Identifier 
  @Sqlite(index: true, unique: true), final
 - isNewRecord → bool
 - 
  If 
true, this model has not yet been inserted into SQLite.read-only, inherited - location → Location?
 - 
  The Location-Entity causing this split time to be created 
  @Rest(toGenerator: 'LocationConverter.toJsonString(%INSTANCE_PROPERTY%)', fromGenerator: 'LocationConverter.fromJsonString(%DATA_PROPERTY%)'), @Sqlite(columnType: Column.varchar, toGenerator: 'LocationConverter.toJsonString(%INSTANCE_PROPERTY%)', fromGenerator: 'LocationConverter.fromJsonString(%DATA_PROPERTY%)'), @JsonKey(toJson: LocationConverter.toJson, fromJson: LocationConverter.fromJson), final
 - locationsCount → num
 - 
  The number of Locations collected for this split. 
  final
 - meta → Json
 - 
  Could contain additional entries as meta-data to implement project-specific use cases. 
  final
 - primaryKey ↔ int?
 - 
  The fields needs to be overwritten, to keep it out of the json 
  @JsonKey(ignore: true), read / write, inherited
 - runId → String
 - 
  The ID of the run instance 
  final
 - runTime → num
 - 
  The amount of milliseconds since the user run start 
  final
 - runtimeType → Type
 - 
  A representation of the runtime type of the object. 
  read-only, inherited
 
Methods
- 
  afterSave(
{Provider< Model> ? provider, ModelRepository<Model> ? repository}) → Future<void>  - 
  Hook invoked after the model is successfully entered in the SQLite database.
Useful to update or save associations. 
  inherited
 - 
  beforeSave(
{Provider< Model> ? provider, ModelRepository<Model> ? repository}) → Future<void>  - 
  Hook invoked before the model is successfully entered in the SQLite database.
Useful to update or save associations. 
  inherited
 - 
  copyWith(
{String? created, num? runTime, double? averageSpeed, num? distance, String? runId, Location? location, num? locationsCount, num? cheat, Map< String, dynamic> ? meta, String? id, String? eventId}) → SplitTime - 
   
  inherited
 - 
  noSuchMethod(
Invocation invocation) → dynamic  - 
  Invoked when a non-existent method or property is accessed. [...]
  inherited
 - 
  toJson(
) → Map< String, dynamic>  - 
  Run location to json 
  override
 - 
  toString(
) → String  - 
  A string representation of this object. [...]
  inherited
 
Operators
- 
  operator ==(
Object other) → bool  - 
  The equality operator. [...]
  inherited