copyWith method

ToolMockConfig copyWith({
  1. String? defaultReturnValue,
  2. bool? defaultIsError,
})

Implementation

ToolMockConfig copyWith({String? defaultReturnValue, bool? defaultIsError}) {
  return ToolMockConfig(
      defaultReturnValue: defaultReturnValue ?? this.defaultReturnValue,
      defaultIsError: defaultIsError ?? this.defaultIsError);
}