addToScene method

  1. @override
void addToScene(
  1. SceneBuilder builder
)
override

Override this method to upload this layer to the engine.

Implementation

@override
void addToScene(ui.SceneBuilder builder) {
  builder.addPlatformView(
    viewId,
    offset: rect.topLeft,
    width: rect.width,
    height: rect.height,
  );
}