TDLink class

Inheritance

Constructors

const

Properties

color Color?
link 文本的颜色,如果不设置则根据状态和风格进行计算
final
fontSize double?
link 文本的字体大小,如果不设置则根据状态和风格进行计算
final
hashCode int
The hash code for this object.
no setterinherited
iconSize double?
link icon 大小,如果不设置则根据状态和风格进行计算
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
link 展示的文本
final
leftGapWithIcon double?
前置icon和文本之间的间隔,如果不设置则根据状态和风格进行计算
final
linkClick LinkClick?
link 被点击之后所采取的动作,会将uri当做参数传入到该方法当中
final
prefixIcon Icon?
前置 icon
final
rightGapWithIcon double?
后置icon和文本之间的间隔,如果不设置则根据状态和风格进行计算
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size TDLinkSize
link 大小
final
state TDLinkState
link 状态
final
style TDLinkStyle
link 风格
final
suffixIcon Icon?
后置 icon
final
type TDLinkType
link 类型
final
uri Uri?
link 跳转的uri
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
getColor(BuildContext context) Color
getConfiguration(BuildContext context) TDLinkConfiguration?
提取成方法,允许业务定义自己的TDLinkConfiguration
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