Sheet constructor
const
Sheet({
- Color? color,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry? alignment,
- Decoration? decoration,
- Decoration? foregroundDecoration,
- Clip clipBehavior = Clip.none,
- BoxConstraints? constraints,
- Matrix4? transform,
- AlignmentGeometry? transformAlignment,
A wrapper for the parameters that pertain to an Animated
/Container.
If not provided an initializing color
nor
decoration
, this field defaults to Colors.black so that a Foil.sheet
has pixels to which it can mask its gradient.
Note that if provided a decoration
, but that Decoration has no color,
and no initializing color
value was provided either, this Sheet
may
potentially result in a layer that has no pixels to which a Foil
may be masked.
See also:
new Container
, whose properties thisSheet
mimics
Implementation
const Sheet({
Color? color,
this.width,
this.height,
this.margin,
this.padding,
this.alignment,
this.decoration,
this.foregroundDecoration,
this.clipBehavior = Clip.none,
this.constraints,
this.transform,
this.transformAlignment,
}) : color = (color == null && decoration == null) ? Colors.black : color;