Prop<T> constructor
Prop<T> ({
- required PropStatus status,
- T? data,
- dynamic error,
- dynamic allowNull = true,
Implementation
Prop({required this.status, this.data, this.error, allowNull = true})
: assert(
(allowNull
? true
: (data != null && error == null) ||
(data == null && error != null)),
"Both data and error can't be true at the same time");