We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c22f07d commit b939278Copy full SHA for b939278
lib/common/result/result.dart
@@ -40,6 +40,7 @@ sealed class Result<T> {
40
};
41
}
42
43
+ /// Maps the value of the result and returns the error or success [TResult]
44
TResult when<TResult extends Object?>({
45
required TResult Function(BaseError? error) error,
46
required TResult Function(T? response) success,
0 commit comments