ImageSpec class

Inheritance
Annotations

Constructors

ImageSpec({double? width, double? height, Color? color, ImageRepeat? repeat, BoxFit? fit, AlignmentGeometry? alignment, Rect? centerSlice, FilterQuality? filterQuality, BlendMode? colorBlendMode, AnimatedData? animated})
const
ImageSpec.exhaustive({required double? width, required double? height, required Color? color, required ImageRepeat? repeat, required BoxFit? fit, required AlignmentGeometry? alignment, required Rect? centerSlice, required FilterQuality? filterQuality, required BlendMode? colorBlendMode, required AnimatedData? animated})
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?>
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({ImageProvider<Object>? image, double? width, double? height, Color? color, ImageRepeat? repeat, BoxFit? fit, AlignmentGeometry? alignment, Rect? centerSlice, FilterQuality? filterQuality, BlendMode? colorBlendMode, AnimatedData? animated}) ImageSpec
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
override
getDiff(EqualityMixin other) Map<String, String>
inherited
lerp(covariant ImageSpec? other, double t) ImageSpec
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) ImageSpec
of(BuildContext context) ImageSpec