copyWith method

BeamState copyWith({
  1. List<String>? pathBlueprintSegments,
  2. Map<String, String>? pathParameters,
  3. Map<String, String>? queryParameters,
  4. Map<String, dynamic>? data,
})

Returns a configured copy of this.

Implementation

BeamState copyWith({
  List<String>? pathBlueprintSegments,
  Map<String, String>? pathParameters,
  Map<String, String>? queryParameters,
  Map<String, dynamic>? data,
}) =>
    BeamState(
      pathBlueprintSegments:
          pathBlueprintSegments ?? this.pathBlueprintSegments,
      pathParameters: pathParameters ?? this.pathParameters,
      queryParameters: queryParameters ?? this.queryParameters,
      data: data ?? this.data,
    )..configure();