CustomerNotifier constructor
Implementation
CustomerNotifier({
required this.checkout,
required this.customerId,
required this.name,
}) : super(const AsyncValue.loading()) {
if (customerId.isNotEmpty) {
getCustomerDetails(customerId);
} else {
state = AsyncValue.data(
Customer(id: "", instruments: [], email: '', name: ''));
}
}