TxStatusIndicatorThemeData class

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

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

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

Inheritance
Mixed-in types
Annotations

Constructors

TxStatusIndicatorThemeData.new({Color? indicatorColor, double? indicatorSize, Color? labelColor, TextStyle? labelStyle})
创建可用于 ThemeData.extension<TxStatusIndicatorThemeData>() 的主题。
const

Properties

hashCode int
The hash code for this object.
no setteroverride
indicatorColor Color?
final
indicatorSize double?
final
labelColor Color?
final
labelStyle TextStyle?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Object
The extension's type.
no setterinherited

Methods

copyWith({Color? indicatorColor, double? indicatorSize, Color? labelColor, TextStyle? labelStyle}) TxStatusIndicatorThemeData
创建此对象的副本,但将给定字段替换为新值。
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
lerp(covariant ThemeExtension<TxStatusIndicatorThemeData>? other, double t) ThemeExtension<TxStatusIndicatorThemeData>
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