repeatMode property

Repeat repeatMode
final

How to paint any portions of the box that would not otherwise be covered by the image.

This is the special ingredient for a DecorationImageToo and allows the creation of seamless, tiling textures with any given image.

In addition to the standard ImageRepeat options, this Repeat property has a few extra display choices.

While a standard DecorationImage can be tiled in both axes with ImageRepeat.repeat, a DecorationImageToo may additionally be tiled with mirroring in both axes by Repeat.mirror.

Consider that ImageRepeat.repeatX tiles an image only horizontally then reason that Repeat.mirrorX tiles an image horizontally by mirroring each odd-numbered tile horizontally. Also available is Repeat.mirrorY.

Implementation

final Repeat repeatMode;