TimeRangeWidget class
时间范围选择 TimeRange widget.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TimeRangeWidget
Constructors
- TimeRangeWidget({Key? key, DateTime? minDateTime, DateTime? maxDateTime, bool isLimitTimeRange = true, DateTime? initialStartDateTime, DateTime? initialEndDateTime, String? dateFormat = datetimeRangePickerTimeFormat, PickerTitleConfig pickerTitleConfig = PickerTitleConfig.Default, int minuteDivider = 1, DateVoidCallback? onCancel, DateRangeValueCallback? onChange, DateRangeValueCallback? onConfirm, PickerConfig? themeData})
Properties
- dateFormat → String?
-
时间格式
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialEndDateTime → DateTime?
-
初始结束选中时间
final
- initialStartDateTime → DateTime?
-
初始开始选中时间
final
- isLimitTimeRange → bool
-
是否限制 Picker 选择的时间范围(开始时间≤结束时间)
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- maxDateTime → DateTime?
-
可选最大时间
final
- minDateTime → DateTime?
-
可选最小时间
final
- minuteDivider → int
-
分钟展示的间隔
final
- onCancel → DateVoidCallback?
-
cancel 回调
final
- onChange → DateRangeValueCallback?
-
选中时间变化时的回调,返回选中的开始、结束时间
final
- onConfirm → DateRangeValueCallback?
-
确定回调,返回选中的开始、结束时间
final
- pickerTitleConfig → PickerTitleConfig
-
Picker title 相关内容配置
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeData ↔ PickerConfig?
-
Picker 主题配置
getter/setter pair
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
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