connectionState property

  1. @Deprecated('Use SnapState.status')
ConnectionState get connectionState

Implementation

@Deprecated('Use SnapState.status')
// ignore: public_member_api_docs
ConnectionState get connectionState {
  if (isWaiting) {
    return ConnectionState.waiting;
  }
  if (hasError || hasData) {
    return ConnectionState.done;
  }
  return ConnectionState.none;
}