| |
| |
| |
| # updateView method |
| |
| |
| |
| |
| *[<Null safety>](https://dart.dev/null-safety)* |
| |
| |
| |
| |
| Future<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); |
| } |
| ``` |
| |
| |
| |
| |
| |
| |
| |