A background image for a box.

The image is painted using paintImage, which describes the meanings of the various fields on this class in more detail.

Constructors

BackgroundImage({ImageProvider image, ImageFit fit, ImageRepeat repeat: ImageRepeat.noRepeat, Rect centerSlice, ColorFilter colorFilter, FractionalOffset alignment })

Creates a background image.

const

Properties

alignment FractionalOffset

How to align the image within its bounds.

read-only
centerSlice Rect

The center slice for a nine-patch image.

read-only
colorFilter ColorFilter

A color filter to apply to the background image before painting it.

read-only
fit ImageFit

How the background image should be inscribed into the box.

read-only
hashCode int

read-only
image ImageProvider

The image to be painted into the background.

read-only
repeat ImageRepeat

How to paint any portions of the box not covered by the background image.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

Methods

toString() String

Returns a string representation of this object.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited