CleanCalendarController class
- Inheritance
-
- Object
- ChangeNotifier
- CleanCalendarController
Constructors
- CleanCalendarController({required DateTime minDate, required DateTime maxDate, bool rangeMode = true, bool readOnly = false, DateTime? endDateSelected, DateTime? initialDateSelected, dynamic onDayTapped(DateTime date)?, dynamic onRangeSelected(DateTime minDate, DateTime? maxDate)?, dynamic onAfterMaxDateTapped(DateTime date)?, dynamic onPreviousMinDateTapped(DateTime date)?, int weekdayStart = DateTime.monday, DateTime? initialFocusDate})
Properties
- endDateSelected → DateTime?
-
The end of selected range
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- initialDateSelected → DateTime?
-
An initial selected date
final
- initialFocusDate → DateTime?
-
An initial fucus date
final
- itemScrollController → ItemScrollController
-
The item scroll controller
final
- maxDate → DateTime
-
Obrigatory: The maximum date to show
final
- minDate → DateTime
-
Obrigatory: The mininimum date to show
final
-
months
↔ List<
DateTime> -
getter/setter pair
- onAfterMaxDateTapped → dynamic Function(DateTime date)?
-
When a date after max date is tapped
final
- onDayTapped → dynamic Function(DateTime date)?
-
Function when a day is tapped
final
- onPreviousMinDateTapped → dynamic Function(DateTime date)?
-
When a date before the min date is tapped
final
- onRangeSelected → dynamic Function(DateTime minDate, DateTime? maxDate)?
-
Function when a range is selected
final
- rangeMaxDate ↔ DateTime?
-
getter/setter pair
- rangeMinDate ↔ DateTime?
-
getter/setter pair
- rangeMode → bool
-
If the range is enabled
final
- readOnly → bool
-
If the calendar is readOnly
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weekdayEnd ↔ int
-
getter/setter pair
- weekdayStart → int
-
In what weekday position the calendar is going to start
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
clearSelectedDates(
) → void -
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
-
getDaysOfWeek(
[String locale = 'pt']) → List< String> -
jumpToMonth(
{required DateTime date, double alignment = 0}) → void -
Jump to
date.month
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
onDayClick(
DateTime date, {bool update = true}) → void -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
scrollToMonth(
{required DateTime date, double alignment = 0, required Duration duration, Curve curve = Curves.linear, List< double> opacityAnimationWeights = const [40, 20, 40]}) → Future<void> -
Scroll to
date.month
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited