closeConnection method

void closeConnection()

A function that will disconnect all event listeners from CarPlay. The action will be irrevocable, and a new FlutterCarplay controller must be created after this, otherwise CarPlay will be unusable.

! It is not recommended to use this function if you do not know what you are doing.

Implementation

void closeConnection() {
  _eventBroadcast!.cancel();
}