newLayerOffsetPosition property
Offset
newLayerOffsetPosition
Returns the new layer offset position.
If the newLayerOffsetPosition
in layerInteraction
is null
, it returns Offset.zero
.
This ensures that the offset is never null
and always has a valid value.
Implementation
Offset get newLayerOffsetPosition =>
layerInteraction.newLayerOffsetPosition ?? Offset.zero;