VisibleDateRange class abstract
Defines how many days are visible at once and whether they, e.g., snap to weeks.
- Mixed in types
- Implementers
Constructors
- VisibleDateRange({required int visibleDayCount, required bool canScroll})
-
const
- VisibleDateRange.days(int visibleDayCount, {int swipeRange, DateTime? alignmentDate, DateTime? minDate, DateTime? maxDate})
-
A visible range that shows
visibleDayCount
consecutive days.factory - VisibleDateRange.fixed(DateTime startDate, int visibleDayCount)
-
A non-scrollable visible range.
factory
- VisibleDateRange.week({int startOfWeek = DateTime.monday, DateTime? minDate, DateTime? maxDate})
-
A visible range that shows seven consecutive days, aligned to
startOfWeek
.factory - VisibleDateRange.weekAligned(int visibleDayCount, {int firstDay = DateTime.monday, DateTime? minDate, DateTime? maxDate})
-
A visible range that shows
visibleDayCount
consecutive days, aligned tofirstDay
.factory
Properties
- canScroll → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visibleDayCount → int
-
final
Methods
-
applyBoundaryConditions(
double page) → double -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getTargetPageForCurrent(
double currentPage, {double velocity = 0, Tolerance tolerance = Tolerance.defaultTolerance}) → double -
getTargetPageForFocus(
double focusPage) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited