BoxTestSpec class

A specification that defines the visual properties of BoxTestSpec.

To retrieve an instance of BoxTestSpec, use the BoxTestSpec.of method with a BuildContext, or the BoxTestSpec.from method with MixData

Inheritance

Constructors

BoxTestSpec({AlignmentGeometry? alignment, AnimatedData? animated, Clip? clipBehavior, BoxConstraints? constraints, Decoration? decoration, Decoration? foregroundDecoration, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Matrix4? transform, AlignmentGeometry? transformAlignment, double? width})
Creates a BoxTestSpec with the given fields
const

Properties

alignment AlignmentGeometry?
final
animated AnimatedData?
finalinherited
clipBehavior Clip?
final
constraints BoxConstraints?
final
decoration Decoration?
final
foregroundDecoration Decoration?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
isAnimated bool
no setterinherited
margin EdgeInsetsGeometry?
final
padding EdgeInsetsGeometry?
final
props List<Object?>
The list of properties that constitute the state of this BoxTestSpec.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
no setterinherited
transform Matrix4?
final
transformAlignment AlignmentGeometry?
final
type Type
no setterinherited
width double?
final

Methods

copyWith({AlignmentGeometry? alignment, AnimatedData? animated, Clip? clipBehavior, BoxConstraints? constraints, Decoration? decoration, Decoration? foregroundDecoration, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Matrix4? transform, AlignmentGeometry? transformAlignment, double? width}) BoxTestSpec
Creates a copy of this BoxTestSpec but with the given fields replaced with the new values.
override
getDiff(EqualityMixin other) Map<String, String>
inherited
lerp(covariant BoxTestSpec? other, double t) BoxTestSpec
Linearly interpolate with another Spec object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

from(MixData mix) BoxTestSpec
Retrieves the BoxTestSpec from a MixData.
of(BuildContext context) BoxTestSpec
Retrieves the BoxTestSpec from the nearest Mix ancestor.