copyWith method

AFRouteStateSegments copyWith({
  1. List<AFRouteSegment>? active,
  2. List<AFRouteSegment>? prior,
})

Implementation

AFRouteStateSegments copyWith({
  List<AFRouteSegment>? active,
  List<AFRouteSegment>? prior
}) {

  return AFRouteStateSegments(
    active: active ?? this.active,
    prior: prior ?? this.prior
  );
}