-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OptionalExtension does not support null.toOptional #16
Comments
To be clear, even if the code were reverted to what you suggest, Dart would refuse to run code like
|
I see what you're saying, this is a more realistic test:
|
The problem isn't the test. It's that the construct isn't valid. You can't invoke methods/properties of a reference to a nullable type. The test you suggest would also fail to run, with the same error. |
So sad! This makes the extension literally half as useful. |
Hi @tonio-ramirez,
Can you please revert the change made to
OptionalExtension
as it no longer handles null values with toOptional.Should be
Missing test case for
test/src/extension.dart
Many thanks!
James
The text was updated successfully, but these errors were encountered: