shutdown method

void shutdown()
inherited

Shut down the channel if it was created by this client.

Matches the original Flutter client's fire-and-forget behaviour. Call shutdownAsync if you need to await the channel closing.

Implementation

void shutdown() {
  if (_ownsChannel) {
    // Fire-and-forget to preserve compatibility with existing callers.
    channel.shutdown();
  }
}