TermDateRangePicker class
A range of dates chosen under its field, 2026-11-02 → 2026-11-09: the
first day pressed is its start, the next its end, the days between
shaded as the pointer moves; the end closes it.
TermDateRangePicker(
labelText: 'window',
value: window,
firstDate: DateTime(2026),
lastDate: DateTime(2027),
onChanged: (r) => setState(() => window = r),
)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TermDateRangePicker
Constructors
-
TermDateRangePicker({Key? key, required DesignDateRange? value, required ValueChanged<
DesignDateRange> ? onChanged, required DateTime firstDate, required DateTime lastDate, String? labelText, String hintText = _rangeHint, String? helperText, String? errorText, DateTime? currentDate, TermStyle? style}) -
A range field over
value.const
Properties
- currentDate → DateTime?
-
Today; null: the clock's.
final
- errorText → String?
-
What is wrong, in place of the help.
final
- firstDate → DateTime
-
The first day it offers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperText → String?
-
Help under the frame.
final
- hintText → String
-
The dim words while none is chosen.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelText → String?
-
What the range is.
final
- lastDate → DateTime
-
The last day it offers.
final
-
onChanged
→ ValueChanged<
DesignDateRange> ? -
Called with the range once its end is chosen; null disables it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TermStyle?
-
Overrides for the field, over the theme's TermThemeData.selectStyle;
the calendar reads TermThemeData.calendarStyle.
final
- value → DesignDateRange?
-
The range chosen, or null.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TermDateRangePicker> -
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.
override
-
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