copyWith method

TransactionResponseDto copyWith({
  1. bool? success,
  2. String? message,
  3. Data? data,
})

Implementation

TransactionResponseDto copyWith({
  bool? success,
  String? message,
  Data? data,
}) =>
    TransactionResponseDto(
      success: success ?? this.success,
      message: message ?? this.message,
      data: data ?? this.data,
    );