OpacityLayer constructor

OpacityLayer({
  1. int? alpha,
  2. Offset offset = Offset.zero,
})

Creates an opacity layer.

The alpha property must be non-null before the compositing phase of the pipeline.

Implementation

OpacityLayer({int? alpha, super.offset}) : _alpha = alpha;