DecorationImg class Null safety

A shorthand wrapper for DecorationImageToo.

Inheritance

Constructors

DecorationImg({required ImageProvider<Object> image, double scale = 1.0, BoxFit? fit, AlignmentGeometry alignment = Alignment.center, Repeat repeatMode = Repeat.noRepeat, Offset mirrorOffset = Offset.zero, ColorFilter? colorFilter, Rect? centerSlice, bool matchTextDirection = false, ImageErrorListener? onError})
Creates an image to show in a BoxDecoration which supports the Repeat rendering modes including Repeat.mirror.
const

Properties

alignment AlignmentGeometry
How to align the image within its bounds.
final, inherited
centerSlice Rect?
The center slice for a nine-patch image.
final, inherited
colorFilter ColorFilter?
A color filter to apply to the image before painting it.
final, inherited
filterQuality FilterQuality
Used to set the filterQuality of the image.
final, inherited
fit BoxFit?
How the image should be inscribed into the box.
final, inherited
hashCode int
The hash code for this object.
read-only, inherited
image ImageProvider<Object>
The image to be painted into the decoration.
final, inherited
invertColors bool
Whether the colors of the image are inverted when drawn.
final, inherited
isAntiAlias bool
Whether to paint the image with anti-aliasing.
final, inherited
matchTextDirection bool
Whether to paint the image in the direction of the TextDirection.
final, inherited
mirrorOffset Offset
Only applicable if repeat is Repeat.mirror, Repeat.mirrorX, or Repeat.mirrorY. Default is Offset.zero.
final, inherited
onError ImageErrorListener?
An optional error callback for errors emitted when loading image.
final, inherited
opacity double
If non-null, the value is multiplied with the opacity of each image pixel before painting onto the canvas.
final, inherited
repeat ImageRepeat
How to paint any portions of the box that would not otherwise be covered by the image.
read-only, inherited
repeatMode Repeat
How to paint any portions of the box that would not otherwise be covered by the image.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scale double
Defines image pixels to be shown per logical pixels.
final, inherited

Methods

createPainter(VoidCallback onChanged) DecorationImagePainter
Creates a DecorationImagePainterToo for this DecorationImageToo.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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