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

Refactor to directly call Platform.is and make .isWeb constant #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tqdv
Copy link

@tqdv tqdv commented Mar 4, 2022

No description provided.


abstract class UniversalPlatform {
static UniversalPlatformType get value => UniversalPlatform.current;
static UniversalPlatformType get current => UniversalPlatformType.None;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this is correct? Why have both value and current? Why is current set to value, and none set to current?

Copy link
Author

Choose a reason for hiding this comment

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

Hmmm, I was thinking of having .current as an alias to .value, but it might be unneeded. I'll remove it.

@tqdv tqdv force-pushed the master branch 3 times, most recently from e38186e to 165dcb1 Compare March 4, 2022 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants