Fos<F extends Failure, S>.success constructor
Fos<F extends Failure, S>.success (
- S success
use this method to return success
success
is the success object
example:
try {
final user = await findUsers("$params");
return Fos.success(user);
}
Implementation
factory Fos.success(S success) => _Success(success);