Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Conversation

HosamHasanRamadan
Copy link

@HosamHasanRamadan HosamHasanRamadan commented Jul 2, 2024

Adding shorter and more readable way to get value from Result

old

final result = Result.value(10);
if(result.isValue) result.asValue!.value
// or 
result.asValue?.value

new

final result = Result.value(10);
if(result.isValue) result.requiredValue
// or
result.valueOrNull

  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

@mosuem
Copy link
Contributor

mosuem commented Oct 16, 2024

Closing as the dart-lang/async repository is merged into the dart-lang/core monorepo. Please re-open this PR there!

@mosuem mosuem closed this Oct 16, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants