copyWith method

BeamState copyWith({
  1. List<String>? pathPatternSegments,
  2. Map<String, String>? pathParameters,
  3. Map<String, String>? queryParameters,
  4. Object? routeState,
})

Returns a configured copy of this.

Implementation

BeamState copyWith({
  List<String>? pathPatternSegments,
  Map<String, String>? pathParameters,
  Map<String, String>? queryParameters,
  Object? routeState,
}) =>
    BeamState(
      pathPatternSegments: pathPatternSegments ?? this.pathPatternSegments,
      pathParameters: pathParameters ?? this.pathParameters,
      queryParameters: queryParameters ?? this.queryParameters,
      routeState: routeState ?? this.routeState,
    )..configure();