Result<T, F extends Failure> constructor
Result<T, F extends Failure> ({
- bool ok = true,
- T? data,
- F? failure,
Implementation
Result({bool ok = true, T? data, F? failure}) {
_ok = ok;
_data = data;
_failure = failure;
}