StateSnapshot<T> constructor

const StateSnapshot<T>(
  1. T? data,
  2. Object? error
)

Implementation

const StateSnapshot(
  this.data,
  this.error,
) : assert(!(data != null && error != null),
          "Both data and error cant be set at the same time");