StateSnapshot<T> constructor
const
StateSnapshot<T> (
- T? data,
- 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");