layer property Null safety
override
The layer we created when we were last painted.
Implementation
@override
FollowerLayer? get layer => super.layer as FollowerLayer?;
protected">@protectedinherited
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;
}