ChatDesktopDatePickerWidget class
桌面/Web 端快捷日期选择器 提供 4 个快捷选项:今天 / 最近一周 / 最近一个月 / 自定义范围 固定尺寸:宽 128px,高 144px(4 行 × 32px + 上下各 8px padding)
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ChatDesktopDatePickerWidget
Constructors
- ChatDesktopDatePickerWidget({Key? key, void onDateRangeSelected(DateTime start, DateTime? end)?, VoidCallback? onCustomSelected, int? selectedIndex})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCustomSelected → VoidCallback?
-
点击「自定义范围」时的回调(由父页面负责弹出自定义弹框)
final
- onDateRangeSelected → void Function(DateTime start, DateTime? end)?
-
选中快捷日期范围后的回调
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int?
-
当前选中的快捷选项索引(-1 表示自定义,null 表示无选中)
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< ChatDesktopDatePickerWidget> -
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