-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Added support for enhanced enums in data/demos.dart #681
Added support for enhanced enums in data/demos.dart #681
Conversation
lib/data/demos.dart
Outdated
@override | ||
String toString() { | ||
return name.toUpperCase(); | ||
} | ||
} | ||
|
||
extension GalleryDemoExtension on GalleryDemoCategory { |
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.
Hi, happy to have you contribute!
Enhanced enums allow us to get rid of this extension, altogether. Can we move displayTitle inside the enum?
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.
Hey, yes sure i fixed this in the new commit
pubspec.lock
Outdated
@@ -49,7 +49,7 @@ packages: | |||
name: async | |||
url: "https://pub.dartlang.org" | |||
source: hosted | |||
version: "2.9.0" | |||
version: "2.8.2" |
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.
Please revert this
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.
done, 1 extra commit was created due to me having to pull from master cuz of conflicts
…adabbas02/gallery into enhanced-enums-in-demos.dart Changed the pubspec.lock
This is my first pull request and I'm a new contributor
My pull request should fix issue #680 where I overrode the toString() function and I had to change the minimum SDK in pubspec.yaml to 2.17 to support enhanced enums
Fixes #680