Google is committed to advancing racial equity for Black communities. See how.

setViewProperties method

*<Null safety>*

void setViewProperties ({bool? focusable: true, bool? hitTestable: true})

Sets properties on the remote Scene represented by this connection.

Called by ChildViewRenderBox2 when the focusable and hitTestable properties are changed.

Implementation

void setViewProperties({bool? focusable = true, bool? hitTestable = true}) {
  final args = <String, dynamic>{
    'viewId': viewId,
    'hitTestable': hitTestable,
    'focusable': focusable,
  };
  _platformViewChannel.invokeMethod('View.update', args);
}