copyWith method

Expectation copyWith({
  1. String? path,
  2. String? message,
  3. dynamic value,
  4. String? code,
  5. Map<String, Object?>? data,
})

Implementation

Expectation copyWith({
  String? path,
  String? message,
  dynamic value,
  String? code,
  Map<String, Object?>? data,
}) {
  return Expectation(
    path: path ?? this.path,
    message: message ?? this.message,
    value: value ?? this.value,
    code: code ?? this.code,
    data: data ?? this.data,
  );
}