close method

Future<void> close()

Implementation

Future<void> close() async {
  final connection = await peerConnection;
  connection.close();
  connection.dispose();
  stream?.dispose();
}