Err<T, E> constructor
- @literal
- E error
Creates an erroneous Result with the given error
.
Examples
// prints "Err(error)"
print(const Err<int, String>('error'));
Implementation
@literal
const Err(this.error) : super._();
Creates an erroneous Result with the given error
.
// prints "Err(error)"
print(const Err<int, String>('error'));
@literal
const Err(this.error) : super._();