SheenDateWheels class Sheets

Day, month and year wheels, as showSheenDateSheet shows them; usable on their own in a page.

Inheritance

Constructors

SheenDateWheels({Key? key, required DateTime first, required DateTime last, required DateTime initial, required ValueChanged<DateTime> onChanged, List<String> monthLabels = _englishMonths, SheenDateOrder order = SheenDateOrder.dayMonthYear})
Wheels showing initial, kept inside first..last.
const

Properties

first → DateTime
The earliest date that can be picked.
final
hashCode → int
The hash code for this object.
no setterinherited
initial → DateTime
The date shown first.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
last → DateTime
The latest date that can be picked.
final
monthLabels → List<String>
The twelve month names, January first.
final
onChanged → ValueChanged<DateTime>
Called with the date shown whenever a wheel settles.
final
order → SheenDateOrder
The order of the wheels.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<SheenDateWheels>
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

Static Methods

clamp(DateTime date, DateTime first, DateTime last) → DateTime
date without its time, kept inside first..last.

Constants

rowHeight → const double
The height of one row.