detach method

  1. @override
Future<void> detach()
override

Detaches the portal if attached to a host.

Returns a future that completes when detached.

Implementation

@override
Future<void> detach() {
  _locals = const {};
  return super.detach();
}