firstState property

FutureOr<T> get firstState

Implementation

FutureOr<T> get firstState {
  if (this is! HypenProxy) {
    return this;
  }
  final proxy = (this as HypenProxy);
  try {
    proxy.$source;
    return this;
  } on AccessWhileLoadingError {
    return Future(() async {
      await proxy.$stream.first;
      return this;
    });
  } catch (_) {
    rethrow;
  }
}