setShowOverlays method

Future<void> setShowOverlays(
  1. bool visible
)

Shows or hides native prediction overlays without changing inference callbacks.

Safe to call before the view attaches: the value is remembered and applied on initialization.

Implementation

Future<void> setShowOverlays(bool visible) {
  _showOverlays = visible;
  return _invoke('setShowOverlays', {'visible': visible});
}