RenderDecoratedSliver constructor
- required Decoration decoration,
- DecorationPosition position = DecorationPosition.background,
- ImageConfiguration configuration = ImageConfiguration.empty,
Creates a decorated sliver.
The decoration
, position
, and configuration
arguments must not be
null. By default the decoration paints behind the child.
The ImageConfiguration will be passed to the decoration (with the size filled in) to let it resolve images.
Implementation
RenderDecoratedSliver({
required Decoration decoration,
DecorationPosition position = DecorationPosition.background,
ImageConfiguration configuration = ImageConfiguration.empty,
}) : _decoration = decoration,
_position = position,
_configuration = configuration;