ImageTestSpec class

A specification that defines the visual properties of ImageTestSpec.

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

Inheritance

Constructors

ImageTestSpec({AlignmentGeometry? alignment, AnimatedData? animated, Rect? centerSlice, Color? color, BlendMode? colorBlendMode, FilterQuality? filterQuality, BoxFit? fit, double? height, ImageRepeat? repeat, double? width})
Creates a ImageTestSpec with the given fields
const

Properties

alignment AlignmentGeometry?
final
animated AnimatedData?
finalinherited
centerSlice Rect?
final
color Color?
final
colorBlendMode BlendMode?
final
filterQuality FilterQuality?
final
fit BoxFit?
final
hashCode int
The hash code for this object.
no setterinherited
height double?
final
isAnimated bool
no setterinherited
props List<Object?>
The list of properties that constitute the state of this ImageTestSpec.
no setter
repeat ImageRepeat?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool
no setterinherited
type Type
no setterinherited
width double?
final

Methods

copyWith({AlignmentGeometry? alignment, AnimatedData? animated, Rect? centerSlice, Color? color, BlendMode? colorBlendMode, FilterQuality? filterQuality, BoxFit? fit, double? height, ImageRepeat? repeat, double? width}) ImageTestSpec
Creates a copy of this ImageTestSpec but with the given fields replaced with the new values.
override
getDiff(EqualityMixin other) Map<String, String>
inherited
lerp(covariant ImageTestSpec? other, double t) ImageTestSpec
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) ImageTestSpec
Retrieves the ImageTestSpec from a MixData.
of(BuildContext context) ImageTestSpec
Retrieves the ImageTestSpec from the nearest Mix ancestor.