IOOption<R>.Do constructor
IOOption<R>.Do (
- DoFunctionIOOption<
R> f
Initialize a Do Notation chain.
Implementation
// ignore: non_constant_identifier_names
factory IOOption.Do(DoFunctionIOOption<R> f) => IOOption(() {
try {
return Option.of(f(_doAdapter));
} on _IOOptionThrow catch (_) {
return const Option.none();
}
});