DecorationImage
DecorationImage
#
An image for a box decoration.
alignment
#
The alignment of the image within its bounds.
color_filter
#
color_filter: ColorFilter | None = None
A color filter to apply to the image before painting it.
invert_colors
#
invert_colors: bool = False
Whether to invert the colors of the image while drawing.
match_text_direction
#
match_text_direction: bool = False
Whether to paint the image in the direction of the TextDirection.
scale
#
scale: Number = 1.0
The scale(image pixels to be shown per logical pixels) to apply to the image.
copy_with
#
copy_with(
*,
src: str | None = None,
src_base64: str | None = None,
src_bytes: bytes | None = None,
color_filter: ColorFilter | None = None,
fit: BoxFit | None = None,
alignment: Alignment | None = None,
repeat: ImageRepeat | None = None,
match_text_direction: bool | None = None,
scale: Number | None = None,
opacity: Number | None = None,
filter_quality: FilterQuality | None = None,
invert_colors: bool | None = None,
anti_alias: bool | None = None,
) -> DecorationImage
Returns a copy of this object with the specified properties overridden.