RenderAnimatedOpacity constructor

RenderAnimatedOpacity({@required Animation<double> opacity, bool alwaysIncludeSemantics: false, RenderBox child })

Creates a partially transparent render object.

The opacity argument must not be null.

Implementation

RenderAnimatedOpacity({
  @required Animation<double> opacity,
  bool alwaysIncludeSemantics = false,
  RenderBox child,
}) : assert(opacity != null),
     assert(alwaysIncludeSemantics != null),
     _alwaysIncludeSemantics = alwaysIncludeSemantics,
     super(child) {
  this.opacity = opacity;
}