copyWith method

ScLoanError copyWith({
  1. bool? isSuccess,
  2. int? code,
  3. String? message,
  4. String? data,
})

Implementation

ScLoanError copyWith({
  bool? isSuccess,
  int? code,
  String? message,
  String? data,
}) {
  return ScLoanError(
    code: code ?? this.code,
    message: message ?? this.message,
    data: data ?? this.data,
  );
}