PaymentDateRangePicker class
Preset sheet or the kit range calendar (D51); performs no zone conversion.
"Custom range" opens a full-height sheet with a scrolling month calendar (first tap the start, second tap the end), typed entry from its header, and a pinned footer with the range, a full-width Apply and Clear.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PaymentDateRangePicker
Constructors
-
PaymentDateRangePicker({Key? key, required String label, required PaymentDateRange? value, required ValueChanged<
PaymentDateRange?> onChanged, required DateTime firstDate, required DateTime lastDate, List<PaymentDatePreset> presets = const [], PaymentDateGranularity? granularity, ValueChanged<PaymentDateGranularity> ? onGranularityChanged, String? description, String? errorText, PaymentSize size = PaymentSize.medium, bool enabled = true}) -
const
-
A calendar icon button that opens the same presets and range sheet,
for a filter line such as
TransactionHistory.searchActions.const
Properties
- description → String?
-
Persistent explanation below the heading or label.
final
- enabled → bool
-
Whether the customer can change this control.
final
- errorText → String?
-
Safe error copy displayed with the affected content.
final
- firstDate → DateTime
-
Earliest selectable day in the host zone.
final
- granularity → PaymentDateGranularity?
-
Current host-selected grouping of calendar periods.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
Visible name identifying this value or control.
final
- lastDate → DateTime
-
Last selectable day in the host zone.
final
-
onChanged
→ ValueChanged<
PaymentDateRange?> -
Reports the selected range to the host.
final
-
onGranularityChanged
→ ValueChanged<
PaymentDateGranularity> ? -
Reports a grouping choice to the host.
final
-
presets
→ List<
PaymentDatePreset> -
Named ranges offered before the custom calendar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → PaymentSize
-
Semantic control size; hit targets remain at least 48 dp.
final
- value → PaymentDateRange?
-
Current host-selected range.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PaymentDateRangePicker> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
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
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited