PrettyQrDecorationImage class

An image for a QR decoration.

Inheritance
Annotations

Constructors

PrettyQrDecorationImage({required ImageProvider<Object> image, double scale = 0.2, ImageErrorListener? onError, ColorFilter? colorFilter, BoxFit? fit, ImageRepeat repeat = ImageRepeat.noRepeat, bool matchTextDirection = false, double opacity = 1.0, FilterQuality filterQuality = FilterQuality.low, bool invertColors = false, bool isAntiAlias = false, EdgeInsetsGeometry padding = EdgeInsets.zero, PrettyQrDecorationImagePosition position = PrettyQrDecorationImagePosition.embedded})
Creates an image to show into QR code.
const

Properties

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

Methods

copyWith({ImageProvider<Object>? image, double? scale, ImageErrorListener? onError, ColorFilter? colorFilter, BoxFit? fit, ImageRepeat? repeat, bool? matchTextDirection, double? opacity, FilterQuality? filterQuality, bool? invertColors, bool? isAntiAlias, EdgeInsetsGeometry? padding, PrettyQrDecorationImagePosition? position}) PrettyQrDecorationImage
Creates a copy of this PrettyQrDecorationImage but with the given fields replaced with the new values.
createPainter(VoidCallback onChanged) DecorationImagePainter
Creates a DecorationImagePainter for this DecorationImage.
inherited
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.
override

Static Methods

lerp(PrettyQrDecorationImage? a, PrettyQrDecorationImage? b, double t) PrettyQrDecorationImage?
Linearly interpolates between two PrettyQrDecorationImages.
override