manuallyDisconnect method

Future<void> manuallyDisconnect()

Implementation

Future<void> manuallyDisconnect() async {
  if (connectedState.value.connected) {
    await vmServiceClosed(
      connectionState:
          const ConnectedState(false, userInitiatedConnectionState: true),
    );
  }
}