OffsetLayer constructor

OffsetLayer({Offset offset: Offset.zero })

Creates an offset layer.

By default, offset is zero. It must be non-null before the compositing phase of the pipeline.

Implementation

OffsetLayer({ Offset offset = Offset.zero }) : _offset = offset;