SnapState<T>.none constructor

const SnapState<T>.none({
  1. T? data,
  2. String debugName = '',
  3. Object? toDebugString(
    1. T?
    )?,
  4. String infoMessage = '',
})

Create a SnapState in idle state

Implementation

const SnapState.none({
  this.data,
  String debugName = '',
  Object? Function(T?)? toDebugString,
  String infoMessage = '',
})  : status = StateStatus.isIdle,
      oldSnapState = null,
      snapError = null,
      _infoMessage = infoMessage,
      _isImmutable = true,
      _debugName = debugName,
      _toDebugString = toDebugString;