AntdEllipsis class
@t 文本省略 @g 信息展示 @o 89 @d 展示空间不足时,隐去部分内容并用“...”替代。 @u 文本内容长度或高度超过列宽或行高。图表中空间有限,文本内容无法完全显示。
- Inheritance
Constructors
-
AntdEllipsis.new({Key? key, AntdEllipsisStyle? style, AntdStyleBuilder<
AntdEllipsisStyle, AntdEllipsis> ? styleBuilder, required String content, String collapseText = "收起", String expandText = "展开", VoidCallback? onTextTap, VoidCallback? onExpandTap, VoidCallback? onCollapseTap, bool defaultExpanded = false, int rows = 1}) -
const
Properties
- collapseText → String
-
收起操作的文案
final
- content → String
-
文本内容
final
- defaultExpanded → bool
-
是否默认展开
final
- expandText → String
-
展开操作的文案
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCollapseTap → VoidCallback?
-
点击收起文本内容时触发
final
- onExpandTap → VoidCallback?
-
点击展开文本内容时触发
final
- onTextTap → VoidCallback?
-
点击文本内容时触发
final
- rows → int
-
展示几行
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → AntdEllipsisStyle?
-
样式
finalinherited
-
styleBuilder
→ AntdStyleBuilder<
AntdEllipsisStyle, AntdEllipsis> ? -
动态样式
finalinherited
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
-
getDefaultStyle(
BuildContext context, AntdTheme theme, AntdMapToken token) → AntdEllipsisStyle -
override
-
getFinalStyle(
BuildContext context, AntdEllipsisStyle style, AntdMapToken token) → AntdEllipsisStyle -
override
-
getInputStyle(
BuildContext context) → AntdEllipsisStyle? -
inherited
-
getStyle(
BuildContext context) → AntdEllipsisStyle -
inherited
-
getStyleBuilder(
BuildContext context) → AntdStyleBuilder< AntdEllipsisStyle, AntdEllipsis> ? -
inherited
-
getThemeStyle(
BuildContext context, AntdTheme theme) → AntdStyleBuilder< AntdEllipsisStyle, AntdEllipsis> ? -
override
-
getWidget(
BuildContext context) → AntdEllipsis -
override
-
margeStyle(
AntdEllipsisStyle defaultStyle, AntdEllipsisStyle? style) → AntdEllipsisStyle -
override
-
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