disposeKeepAlive method

  1. @override
Future<void> disposeKeepAlive(
  1. InAppWebViewKeepAlive keepAlive
)

Disposes the WebView that is using the keepAlive instance for the keep alive feature.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Windows

Implementation

@override
Future<void> disposeKeepAlive(InAppWebViewKeepAlive keepAlive) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('keepAliveId', () => keepAlive.id);
  await _staticChannel.invokeMethod('disposeKeepAlive', args);
  _keepAliveMap[keepAlive] = null;
}