state.dart 601 B

1234567891011121314151617181920212223242526
  1. import 'package:get/get.dart';
  2. import '../../../common/models/index.dart';
  3. class CalendarState {
  4. // title
  5. final _title = "".obs;
  6. set title(value) => _title.value = value;
  7. get title => _title.value;
  8. final _focusedDay = Rx<DateTime>(DateTime.now());
  9. set focusedDay(DateTime value) => _focusedDay.value = value;
  10. DateTime get focusedDay => _focusedDay.value;
  11. final _selectedDay = Rx<DateTime?>(null);
  12. set selectedDay(DateTime? value) => _selectedDay.value = value;
  13. DateTime? get selectedDay => _selectedDay.value;
  14. final RxList<EventInfo> eventList = <EventInfo>[].obs;
  15. }