copyWith method

Payment copyWith({
  1. int? type,
  2. int? sum,
})

Implementation

Payment copyWith({
  int? type,
  int? sum,
}) =>
    Payment(
      type: type ?? this.type,
      sum: sum ?? this.sum,
    );