blob: 14bbd1ab87191e4e826636df261abf2b3490d29f [file] [log] [blame] [view]
# updateView method
*[<Null safety>](https://dart.dev/null-safety)*
Future&lt;void> updateView
(int viewId, {bool hitTestable = true, bool focusable = true, dynamic viewOcclusionHint = Rect.zero})
<p>Updates view properties of the platform view associated with <code>viewId</code>.</p>
## Implementation
```dart
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);
}
```