Skip to content
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

Change from subclassing PhysicalResourceProvider #2341

Merged
merged 2 commits into from
Nov 11, 2020

Conversation

devoncarew
Copy link
Member

@devoncarew devoncarew commented Nov 11, 2020

  • change from subclassing PhysicalResourceProvider

We'd like to change the constructor for PhysicalResourceProvider (to not take any required args); this refactor will make the change a little easier.

@devoncarew devoncarew requested a review from pq November 11, 2020 20:30
@google-cla google-cla bot added the cla: yes label Nov 11, 2020
Copy link
Member

@pq pq left a comment

Choose a reason for hiding this comment

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

👍

MemoryResourceProvider memoryResourceProvider;
class TestResourceProvider extends file_system.ResourceProvider {
final MemoryResourceProvider memoryResourceProvider;
final PhysicalResourceProvider physicalResourceProvider =
Copy link
Member

Choose a reason for hiding this comment

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

Consider static?

Copy link
Member Author

Choose a reason for hiding this comment

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

makes sense - done

@devoncarew devoncarew merged commit ae79c8c into dart-lang:master Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants