summaryrefslogtreecommitdiffstats
path: root/lib/data/data_providers/datetime_notifier.dart
blob: 6947a34f00e0cc827280f7a7e75717da6e0fbb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
  }
}