Skip to content

Conversation

@jacob314
Copy link
Contributor

Also add a convenience helper to make it easier to display a short string for enum values.

…geProvider.

Add convenience helper to make it easier to display a short string for
an enums value.
@jacob314 jacob314 requested a review from Hixie June 27, 2017 01:19
/// assert(describeEnum(Day.monday) == 'monday');
/// }
/// ```
String describeEnum(Object enumEntry) {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe link to the dart bug in a comment (not dartdoc comment)

@Hixie
Copy link
Contributor

Hixie commented Jun 27, 2017

LGTM

@jacob314 jacob314 merged commit 70d3a62 into flutter:master Jun 27, 2017
@jacob314 jacob314 deleted the image_provider branch June 27, 2017 16:13
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jul 1, 2017
…geProvider. (flutter#10986)

* Use defaultTargetPlatform instead of Platform.operatingSystem for ImageProvider.
Add convenience helper to make it easier to display a short string for
an enums value.

* Add comment linking to issue.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants