requestVisualUpdate method Null safety

void requestVisualUpdate()

Calls onNeedVisualUpdate if onNeedVisualUpdate is not null.

Used to notify the pipeline owner that an associated render object wishes to update its visual appearance.

Implementation

void requestVisualUpdate() {
  onNeedVisualUpdate?.call();
}