HomeViewModel exposes payment listenables and date range state/methods matching PaymentsViewModel patterns.
_selectedPeriod Informer but no _customDateRangepaymentsListenable for reactivity_customDateRange Informer and getterpaymentsListenable getter exists and returns merged listenable from PaymentsService_customDateRange Informer exists in STATE sectioncustomDateRangeListenable getter exists in FETCHERS sectionfilteredUserPayments, userPaidTotal, userOwesTotal use _customDateRange.valueonPresetSelected(PaymentPeriodFilter) method exists in MUTATORS sectiononCustomRangeSelected(DateTimeRange?) method exists in MUTATORS sectionpaymentsListenable getter in FETCHERS section_customDateRange Informer in STATE sectioncustomDateRangeListenable getter in FETCHERS sectionfilteredUserPayments to use _customDateRange.valueuserPaidTotal to use _customDateRange.valueuserOwesTotal to use _customDateRange.valueonPresetSelected method in MUTATORS sectiononCustomRangeSelected method in MUTATORS sectionReference payments_view_model.dart lines 77-89 for state pattern and lines 233-241 for methods.
Reacties