updateView method

*[<Null safety>](https://dart.dev/null-safety)*

Future<void> updateView (int viewId, {bool hitTestable = true, bool focusable = true, dynamic viewOcclusionHint = Rect.zero})

Updates view properties of the platform view associated with viewId.

Implementation

Future<void> updateView(
  int viewId, {
  bool hitTestable = true,
  bool focusable = true,
  Rect viewOcclusionHint = Rect.zero,
}) async {
  final Map<String, dynamic> args = <String, dynamic>{
    'viewId': viewId,
    'hitTestable': hitTestable,
    'focusable': focusable,
    'viewOcclusionHintLTRB': <double>[
      viewOcclusionHint.left,
      viewOcclusionHint.top,
      viewOcclusionHint.right,
      viewOcclusionHint.bottom
    ],
  };
  return platformViewChannel.invokeMethod('View.update', args);
}