Del class

Inheritance
Available extensions

Constructors

Del(dynamic data, {Key? key, TextStyle? style})
删除线文本

Properties

data → dynamic
渲染的文本内容,支持传递类型数据,它们会统一使用 toString 转成字符串, 如果是List集合,则会当做富文本进行渲染。
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
locale Locale?
指定语言
finalinherited
maxLines int?
文本最大行数
finalinherited
overflow TextOverflow?
文本超出样式
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionColor Color?
文本选中颜色
finalinherited
semanticsLabel String?
语义化标签
finalinherited
softWrap bool?
是否自动换行
finalinherited
strutStyle StrutStyle?
文本基线对齐样式
finalinherited
style TextStyle?
文本样式
finalinherited
textAlign TextAlign?
文本水平对齐方式,默认左对齐
finalinherited
textDirection TextDirection?
控制文本方向:ltr、rtl
finalinherited
textHeightBehavior TextHeightBehavior?
finalinherited
textScaler TextScaler?
文本缩放倍数,如果要放大2倍,设置 TextScaler.linear(2) 即可
finalinherited
textWidthBasis TextWidthBasis?
测量一行或多行文本宽度的不同方法:
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
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
noScrollbarBehavior(BuildContext context, {Key? key, bool? overscroll, bool enabled = true}) Widget

Available on Widget, provided by the FlutterWidgetExt extension

不使用祖先提供的默认滚动条,当使用自定义滚动条时请添加此扩展方法,防止与祖先提供的默认滚动条重叠
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