Skip to content

Commit b939278

Browse files
committed
Add comment
1 parent c22f07d commit b939278

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/common/result/result.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ sealed class Result<T> {
4040
};
4141
}
4242

43+
/// Maps the value of the result and returns the error or success [TResult]
4344
TResult when<TResult extends Object?>({
4445
required TResult Function(BaseError? error) error,
4546
required TResult Function(T? response) success,

0 commit comments

Comments
 (0)