addToScene method

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

Override this method to upload this layer to the engine.

Return the engine layer for retained rendering. When there's no corresponding engine layer, null is returned.

Implementation

@override
void addToScene(ui.SceneBuilder builder, [ Offset layerOffset = Offset.zero ]) {
  assert(filter != null);
  engineLayer = builder.pushBackdropFilter(filter, oldLayer: _engineLayer);
  addChildrenToScene(builder, layerOffset);
  builder.pop();
}