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

destroyView method

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

Future<void> destroyView (int viewId)

Destroys the platform view associated with viewId.

Implementation

Future<void> destroyView(int viewId) async {
  final Map<String, dynamic> args = <String, dynamic>{
    'viewId': viewId,
  };
  return platformViewChannel.invokeMethod('View.dispose', args);
}