addToScene method

  1. @override
void addToScene(
  1. SceneBuilder builder, [
  2. Offset layerOffset = Offset.zero
])
override

Override this method to upload this layer to the engine.

Implementation

@override
void addToScene(SceneBuilder builder, [Offset layerOffset = Offset.zero]) {
  _picture = _buildPicture();
  builder.addPicture(layerOffset, _picture);
}