done property

Future get done

Implementation

Future get done {
  if (_completed == true) {
    return Future.value('done');
  }
  if (_socket != null) {
    return _socket!.done;
  } else {
    _done = Completer();
    return _done!.future;
  }
}