refactoring for recipient addition page
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:pshared/models/payment/methods/data.dart';
|
||||
import 'package:pshared/models/payment/methods/type.dart';
|
||||
import 'package:pshared/models/payment/type.dart';
|
||||
|
||||
|
||||
class RecipientMethodDraft {
|
||||
final PaymentType type;
|
||||
final PaymentMethod? existing;
|
||||
PaymentMethodData? data;
|
||||
|
||||
RecipientMethodDraft({
|
||||
required this.type,
|
||||
this.existing,
|
||||
PaymentMethodData? data,
|
||||
}) : data = data ?? existing?.data;
|
||||
}
|
||||
Reference in New Issue
Block a user