public DecorationImage( ImageProvider image = null, ImageErrorListener onError = null, ColorFilter colorFilter = null, BoxFit?fit = null, AlignmentGeometry alignment = null, Rect centerSlice = null, ImageRepeat repeat = ImageRepeat.noRepeat, bool matchTextDirection = false ) { D.assert(image != null); this.image = image; this.onError = onError; this.colorFilter = colorFilter; this.fit = fit; this.alignment = alignment ?? Alignment.center; this.centerSlice = centerSlice; this.repeat = repeat; this.matchTextDirection = matchTextDirection; }