VisibleRange class

Implementers

Constructors

VisibleRange({@required int visibleDays})
const
VisibleRange.days(int count)
Display a fixed number of days. [...]
const
factory
VisibleRange.week()
Display seven consecutive days, aligned based on TimetableController.firstDayOfWeek. [...]
const
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
visibleDays int
final

Methods

getDefaultVelocityAddition(double velocity, Tolerance tolerance) double
getTargetPageForCurrent(double currentPage, DayOfWeek firstDayOfWeek, {double velocity = 0, Tolerance tolerance = Tolerance.defaultTolerance}) double
Gets the page to align to the viewport's left side based on the currentPage in that position.
getTargetPageForFocus(double focusPage, DayOfWeek firstDayOfWeek) double
Gets the page to align to the viewport's left side based on the focusPage to show.
getTargetPageForFocusDate(LocalDate focusDate, DayOfWeek firstDayOfWeek) double
Convenience method of getTargetPageForFocus taking a LocalDate.
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