CalendarWeekItem class

每周widget

Inheritance

Constructors

CalendarWeekItem({Key? key, required num year, required num month, required num day, required Function onTap, required Map<String, dynamic> needIdentifierList, Color? subTitleDisableColor, Color? subTitleEnableColor, Color? subTitleFutureColor, required List<DateTime> dateList, required DateTime startDateTime, required DateTime endDateTime})

Properties

dateList List<DateTime>
当前周日期列表
final
day num
当前展示日期
final
endDateTime DateTime
结束时间
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
month num
当前展示月份
final
needIdentifierList Map<String, dynamic>
需标记日期map---key为日期YYYY-mm-dd value为标记描述
final
onTap Function
点击选中
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDateTime DateTime
起始时间
final
subTitleDisableColor Color?
在当前日期之前的副标题颜色
final
subTitleEnableColor Color?
当前日期的副标题颜色
final
subTitleFutureColor Color?
当前日期之后的副标题颜色
final
year num
当前展示年份
final

Methods

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