Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

jonahwilliams
Copy link

@jonahwilliams jonahwilliams commented Jul 25, 2020

Migrate platform to null-safety. Remove stable travis shard since that does not support null safety

@@ -1,12 +1,10 @@
name: platform
version: 2.2.1
authors:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

authors field deprecated 🤕

@jonahwilliams jonahwilliams requested a review from tvolkert July 29, 2020 22:33
@jonahwilliams jonahwilliams marked this pull request as ready for review July 29, 2020 22:33
this.resolvedExecutable,
this.script,
this.executableArguments,
required this.numberOfProcessors,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Making these required is going to be a big breaking change since most uses of FakePlatform are when you know in a test that you only need to fake one field.

Maybe make private fields that are nullable, then the getters that you override for the interface either return the field if it's set, or throw?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that sounds like a good idea.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@jonahwilliams jonahwilliams merged commit 33bb077 into dart-archive:master Jul 29, 2020
@jonahwilliams jonahwilliams deleted the migrate_to_null_safety branch July 29, 2020 23:24
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 16, 2024
…rm#24)

Migrate platform to null-safety. Remove stable travis shard since that does not support null safety
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants