TxSkeletonThemeData class

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

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

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

Inheritance
Mixed-in types
Annotations

Constructors

TxSkeletonThemeData.new({Color? color, BorderRadius? borderRadius})
创建可用于 ThemeData.extension<TxSkeletonThemeData>() 的主题。
const

Properties

borderRadius BorderRadius?
final
color Color?
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Object
The extension's type.
no setterinherited

Methods

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