diff options
Diffstat (limited to 'lib/data/data_providers/datetime_notifier.dart')
-rw-r--r-- | lib/data/data_providers/datetime_notifier.dart | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/data/data_providers/datetime_notifier.dart b/lib/data/data_providers/datetime_notifier.dart new file mode 100644 index 0000000..6947a34 --- /dev/null +++ b/lib/data/data_providers/datetime_notifier.dart @@ -0,0 +1,14 @@ +import 'package:flutter_ics_homescreen/data/models/date_time.dart'; +import 'package:flutter_ics_homescreen/export.dart'; + +class DateTimeNotifier extends StateNotifier<DateAndTime> { + DateTimeNotifier(super.state); + + void setDate(String newVal) { + state = state.copyWith(date: newVal); + } + + void setTime(String newVal) { + state = state.copyWith(time: newVal); + } +} |