DatepickerComparison class

An implementation of DateRangeComparison that has DatepickerDateRanges instead of plain DateRanges.

Implemented types

Constructors

DatepickerComparison(DatepickerDateRange? range, ComparisonOption option)
DatepickerComparison.custom(DatepickerDateRange? range, DatepickerDateRange? comparison)
DatepickerComparison.noComparison(DatepickerDateRange? range)
DatepickerComparison.previousPeriod(DatepickerDateRange range)
DatepickerComparison.reclamp(DatepickerComparison? orig, Date? min, Date? max)
Construct a copy of original clamped to the given min/max dates. Existing clamping is removed before the new clamping is applied.
DatepickerComparison.samePeriodLastYear(DatepickerDateRange range)

Properties

comparison DatepickerDateRange?
The selected comparison range, if any.
final
hashCode int
The hash code for this object.
no setteroverride
isComparisonEnabled bool
no setteroverride
range DatepickerDateRange?
The selected date range.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

comparesTo(ComparisonOption? option) bool
Checks the comparison date range has same logic as given comparisonOption.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override