layer property
override
The layer we created when we were last painted.
Implementation
@override
FollowerLayer? get layer => super.layer as FollowerLayer?;
inherited
Implementation
@protected
set layer(ContainerLayer? newLayer) {
assert(
!isRepaintBoundary,
'Attempted to set a layer to a repaint boundary render object.\n'
'The framework creates and assigns an OffsetLayer to a repaint '
'boundary automatically.',
);
_layerHandle.layer = newLayer;
}