GoogleCalendarTimelineController class
GoogleCalendarTimeline controller.
- Inheritance
-
- Object
- ChangeNotifier
- GoogleCalendarTimelineController
Constructors
- GoogleCalendarTimelineController({int dayInRow = 5, required DateTime today, required DateTime startDate, required DateTime endDate})
Properties
- dateTimeLength → int
-
Get number of days from startDate and endDate.
no setter
- dayInRow → int
-
Number of days to be displayed in one row
final
- endDate ↔ DateTime
-
End DateTime.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- pageController → PageController
-
PageController.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDay ↔ DateTime
-
Get current selected day.
getter/setter pair
- startDate ↔ DateTime
-
Start DateTime.
latefinal
- today ↔ DateTime
-
Current DateTime.
latefinal
- todayIndex → int
-
Get
now
dateIndex
.no setter - todayPageViewIndex → int
-
Get
now
datePageViewIndex
.no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
animateToDateTime(
DateTime dateTime, {Duration duration = const Duration(milliseconds: 200), Curve curve = standardEasing}) → void - Find page index using DateTime and animates the controlled PageView from the current page to the given page.
-
animateToIndex(
int index, {Duration duration = const Duration(milliseconds: 200), Curve curve = standardEasing}) → void -
Find page index using
dateIndex
and animates the controlled PageView from the current page to the given page. -
animateToPage(
int pageIndex, {Duration duration = const Duration(milliseconds: 200), Curve curve = standardEasing}) → void - Animates the controlled PageView from the current page to the given page.
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
getDateTimeIndex(
DateTime dateTime) → int -
Get
dateIndex
. -
jumpToDateTime(
DateTime dateTime) → void - Find page index using DateTime and Changes which page is displayed in the controlled PageView.
-
jumpToIndex(
int index) → void -
Find page index using
dateIndex
and Changes which page is displayed in the controlled PageView. -
jumpToPage(
int pageIndex) → void - Changes which page is displayed in the controlled PageView.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited