TimetableController<E extends Event> class

Controls a Timetable and manages its state.

Constructors

TimetableController({@required EventProvider<E> eventProvider, LocalDate initialDate, InitialTimeRange initialTimeRange = const InitialTimeRange.zoom(1), VisibleRange visibleRange = const VisibleRange.week(), DayOfWeek firstDayOfWeek = DayOfWeek.monday})

Properties

currentlyVisibleDates DateInterval
read-only
currentlyVisibleDatesListenable ValueListenable<DateInterval>
read-only
dateListenable ValueListenable<LocalDate>
read-only
eventProvider EventProvider<E>
The EventProvider used for populating Timetable with events.
final
firstDayOfWeek DayOfWeek
The DayOfWeek on which a week starts. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
initialDate LocalDate
The initially focused date. [...]
final
initialTimeRange InitialTimeRange
The initially visible time range. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scrollControllers → LinkedScrollControllerGroup
read-only
visibleRange VisibleRange
Determines how many days are visible and how these snap to the viewport. [...]
final

Methods

animateTo(LocalDate date, {Curve curve = Curves.easeInOut, Duration duration = const Duration(milliseconds: 200)}) Future<void>
Animates the given date into view. [...]
animateToToday({Curve curve = Curves.easeInOut, Duration duration = const Duration(milliseconds: 200)}) Future<void>
Animates today into view. [...]
dispose() → void
Discards any resources used by the controller. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited