Skip to content

Commit

Permalink
feat: Remove the need for option method delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmah309 committed Mar 2, 2024
1 parent 4ab2898 commit d23d4fa
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 83 deletions.
4 changes: 0 additions & 4 deletions lib/src/option/future_option.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ extension FutureOptionExtension<T extends Object> on FutureOption<T> {
option.isSome() ? f(option.unwrap()) : Future.value(const None()));
}

Future<Option<T>> copy() {
return then((option) => option.copy());
}

Future<T> expect(String msg) {
return then((option) => option.expect(msg));
}
Expand Down
Loading

0 comments on commit d23d4fa

Please sign in to comment.