void addToScene(SceneBuilder builder, Offset layerOffset)

Override this method to upload this layer to the engine

The layerOffset is the accumulated offset of this layer's parent from the origin of the builder's coordinate system.

Source

void addToScene(ui.SceneBuilder builder, Offset layerOffset);