RenderSliverAnimatedOpacity constructor

RenderSliverAnimatedOpacity({
  1. required Animation<double> opacity,
  2. bool alwaysIncludeSemantics = false,
  3. RenderSliver? sliver,
})

Creates a partially transparent render object.

Implementation

RenderSliverAnimatedOpacity({
  required Animation<double> opacity,
  bool alwaysIncludeSemantics = false,
  RenderSliver? sliver,
}) {
  this.opacity = opacity;
  this.alwaysIncludeSemantics = alwaysIncludeSemantics;
  child = sliver;
}