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

update method

*<Null safety>*

Future<void> update ({bool focusable: true, bool hitTestable: true, dynamic viewOcclusionHint: Rect.zero})

Updates properties on the platform view given it's viewId.

Called by FuchsiaView when the focusable or hitTestable or viewOcclusionHint properties are changed.

Implementation

Future<void> update({
  bool focusable = true,
  bool hitTestable = true,
  Rect viewOcclusionHint = Rect.zero,
}) async {
  return fuchsiaViewsService.updateView(
    viewId,
    hitTestable: hitTestable,
    focusable: focusable,
    viewOcclusionHint: viewOcclusionHint,
  );
}