Set.fromResult constructor
Set.fromResult(
- RespType result
Implementation
factory Set.fromResult(RespType<dynamic> result) {
return result.handleAs<Set>(
simple: (_) => Set(ok: true, oldVal: null),
bulk: (type) => Set(ok: type.payload != null, oldVal: type.payload),
error: (_) => Set(ok: false, oldVal: null),
);
}