copy method

Locations copy({
  1. int? position = _emptyIntValue,
  2. double? progression = _emptyDoubleValue,
  3. double? totalProgression = _emptyDoubleValue,
  4. List<String>? fragments,
  5. Map<String, dynamic>? otherLocations,
})

Implementation

Locations copy(
        {int? position = _emptyIntValue,
        double? progression = _emptyDoubleValue,
        double? totalProgression = _emptyDoubleValue,
        List<String>? fragments,
        Map<String, dynamic>? otherLocations}) =>
    Locations(
      progression: progression.check(this.progression),
      position: position.check(this.position),
      totalProgression: totalProgression.check(this.totalProgression),
      fragments: fragments ?? this.fragments,
      otherLocations: otherLocations ?? this.otherLocations,
    );