-
Notifications
You must be signed in to change notification settings - Fork 21
[null-safety] migrate platform to null-safe dart #24
[null-safety] migrate platform to null-safe dart #24
Conversation
@@ -1,12 +1,10 @@ | |||
name: platform | |||
version: 2.2.1 | |||
authors: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
authors field deprecated 🤕
lib/src/testing/fake_platform.dart
Outdated
this.resolvedExecutable, | ||
this.script, | ||
this.executableArguments, | ||
required this.numberOfProcessors, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
…rm#24) Migrate platform to null-safety. Remove stable travis shard since that does not support null safety
Migrate platform to null-safety. Remove stable travis shard since that does not support null safety