copyWith method

ErrorModel copyWith({
  1. String? type,
  2. List<ErrorDetailModel>? errorDetailModel,
})

Implementation

ErrorModel copyWith({
  String? type,
  List<ErrorDetailModel>? errorDetailModel,
}) =>
    ErrorModel(
      type: type ?? this.type,
      errorDetailModel: errorDetailModel ?? this.errorDetailModel,
    );