TdDateTimePicker class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TdDateTimePicker
Constructors
-
TdDateTimePicker({Key? key, DateTime? initialValue, DateTime? start, DateTime? end, List<
TdDateTimePickerMode> mode = TdDateTimePickerMode.values, ValueChanged<DateTime> ? onChanged, TdPickerSelectedItemChange? onSelectedItemChanged}) -
const
-
TdDateTimePicker.date({Key? key, DateTime? initialValue, DateTime? start, DateTime? end, ValueChanged<
DateTime> ? onChanged, TdPickerSelectedItemChange? onSelectedItemChanged}) -
TdDateTimePicker.time({Key? key, DateTime? initialValue, DateTime? start, DateTime? end, ValueChanged<
DateTime> ? onChanged, TdPickerSelectedItemChange? onSelectedItemChanged})
Properties
- end → DateTime?
-
最大可选择日期
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → DateTime?
-
选中值
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
mode
→ List<
TdDateTimePickerMode> -
显示的模式
final
-
onChanged
→ ValueChanged<
DateTime> ? -
确认事件
final
- onSelectedItemChanged → TdPickerSelectedItemChange?
-
选择项改变事件
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → DateTime?
-
最小可选择日期
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TdDateTimePicker> -
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
-
format(
DateTime date, List< TdDateTimePickerMode> mode) → String -
formatDate(
DateTime date) → String -
formatHourAndMinute(
DateTime date) → String -
lastDayOfMonth(
int year, int month) → int - 获取下一个月的第0天,也就是当月的最后一天