TxExpandableTextThemeData class

定义后代 TxExpandableText 小部件的默认属性值。

后代小部件使用 TxExpandableTextTheme.of(context) 获取当前的 TxExpandableTextThemeData 对象。TxExpandableTextThemeData 的实例可以使用 TxExpandableTextThemeData.copyWith 进行自定义。

默认情况下,所有 TxExpandableTextThemeData 属性均为“null”。 如果为 null, TxExpandableText 将使用来自 ThemeData 的值(如果它们存在),否则它将提供自己的默 认值。 有关详细信息,请参阅各个 TxExpandableText 属性。

Inheritance
Mixed-in types
Annotations

Constructors

TxExpandableTextThemeData.new({int? collapsedLines, TextStyle? toggleButtonTextStyle, Color? toggleButtonForegroundColor, TxTextOverflow? overflow})
创建可用于 ThemeData.extension<TxRadioThemeData>() 的主题。
const

Properties

collapsedLines int?
final
hashCode int
The hash code for this object.
no setteroverride
overflow TxTextOverflow?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toggleButtonForegroundColor Color?
final
toggleButtonTextStyle TextStyle?
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({int? collapsedLines, TextStyle? toggleButtonTextStyle, Color? toggleButtonForegroundColor, TxTextOverflow? overflow}) TxExpandableTextThemeData
创建此对象的副本,但将给定字段替换为新值。
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(covariant ThemeExtension<TxExpandableTextThemeData>? other, double t) ThemeExtension<TxExpandableTextThemeData>
Linearly interpolate with another ThemeExtension object.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override