onMount method

  1. @override
void onMount()
override

Called when the owning node enters a live scene graph.

Implementation

@override
void onMount() {
  super.onMount();
  // Tag the item the base class just registered so the encoder selects a
  // level per view instead of drawing the highest-detail fallback.
  for (final item in renderItems) {
    item.lod = _selection;
  }
}