copyWith method

AccountBalance copyWith({
  1. double? available,
  2. double? current,
  3. double? limit,
  4. String? isoCurrencyCode,
  5. String? unofficialCurrencyCode,
  6. DateTime? lastUpdatedDatetime,
})

Implementation

AccountBalance copyWith(
    {double? available,
    double? current,
    double? limit,
    String? isoCurrencyCode,
    String? unofficialCurrencyCode,
    DateTime? lastUpdatedDatetime}) {
  return AccountBalance(
      available: available ?? this.available,
      current: current ?? this.current,
      limit: limit ?? this.limit,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      unofficialCurrencyCode:
          unofficialCurrencyCode ?? this.unofficialCurrencyCode,
      lastUpdatedDatetime: lastUpdatedDatetime ?? this.lastUpdatedDatetime);
}