Ok<T extends Object, E extends Exception> constructor
Ok<T extends Object, E extends Exception> (
- T value
Ok
An Ok can be created with a value
final ok1 = Ok<String, Exception>('Hi');
final ok2 = Result<String, Exception>.ok('Hi');
Implementation
Ok(this.value) : super._();