TimetableController class
A controller for the timetable.
The controller allow intialization of the timetable and to expose timetable functionality to the outside.
Constructors
- TimetableController({int initialColumns = 3, DateTime? start, int? startHour, int? endHour, double? cellHeight, double? headerHeight, double? timelineWidth, dynamic onEvent(TimetableControllerEvent)?})
Properties
- cellHeight → double
-
The current height of each cell in the timetable.
no setter
- columns → int
-
The current number of columns in the timetable.
no setter
- endHour ↔ int
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
no setter
- headerHeight → double
-
The current height of the header in the timetable.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start ↔ DateTime
-
The start date (first column) of the timetable.
getter/setter pair
- startHour ↔ int
-
getter/setter pair
- timelineWidth → double
-
The current width of the timeline where hour labels are rendered.
no setter
- visibleDateStart → DateTime
-
The first date of the visible area of the timetable.
no setter
Methods
-
addListener(
dynamic listener(TimetableControllerEvent)?) → int - Allows listening to events dispatched from the timetable
-
clearListeners(
) → void - Removes all listeners from the timetable
-
dispatch(
TimetableControllerEvent event) → void - Dispatches an event to all listeners
-
jumpTo(
DateTime date) → void - Scrolls the timetable to the given date and time.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
int id) → void - Removes a listener from the timetable
-
setCellHeight(
double height) → dynamic - Updates the height of each cell in the timetable
-
setColumns(
int i) → dynamic - Updates the number of columns in the timetable
-
toString(
) → String -
A string representation of this object.
inherited
-
updateVisibleDate(
DateTime date) → void - This allows the timetable to update the current visible date.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited