progress on batches
This commit is contained in:
@@ -20,14 +20,14 @@ class RecipientModel {
|
||||
@freezed
|
||||
abstract class Recipient with _$Recipient {
|
||||
const factory Recipient({
|
||||
String? uid,
|
||||
String? name,
|
||||
String? email,
|
||||
String? phoneNumber,
|
||||
String? address,
|
||||
String? account,
|
||||
String? initials,
|
||||
String? latestProviderLabel,
|
||||
@JsonKey(includeIfNull: false) String? uid,
|
||||
@JsonKey(includeIfNull: false) String? name,
|
||||
@JsonKey(includeIfNull: false) String? email,
|
||||
@JsonKey(includeIfNull: false) String? phoneNumber,
|
||||
@JsonKey(includeIfNull: false) String? address,
|
||||
@JsonKey(includeIfNull: false) String? account,
|
||||
@JsonKey(includeIfNull: false) String? initials,
|
||||
@JsonKey(includeIfNull: false) String? latestProviderLabel,
|
||||
}) = _Recipient;
|
||||
|
||||
factory Recipient.fromJson(Map<String, dynamic> json) =>
|
||||
@@ -40,14 +40,15 @@ class RecipientsController extends ChangeNotifier {
|
||||
BuildContext context;
|
||||
|
||||
RecipientsController(this.context) {
|
||||
model.selectedProvider =
|
||||
Provider.of<TransactionController>(
|
||||
context,
|
||||
listen: false,
|
||||
).model.selectedProvider;
|
||||
model.selectedProvider = Provider.of<TransactionController>(
|
||||
context,
|
||||
listen: false,
|
||||
).model.selectedProvider;
|
||||
}
|
||||
|
||||
Future<ApiResponse<List<Recipient>>> getRecipients([Map<String, String>? params]) async {
|
||||
Future<ApiResponse<List<Recipient>>> getRecipients([
|
||||
Map<String, String>? params,
|
||||
]) async {
|
||||
model.errorMessage = null;
|
||||
model.isLoading = true;
|
||||
model.recipients = getDummyRecipients();
|
||||
|
||||
Reference in New Issue
Block a user