OffsetLayer constructor

OffsetLayer({
  1. 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({this._offset = Offset.zero});