NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #1012 most downloaded on pub.dev
Better conversion of ENUMs to string. Dart has annoying EnumName.ValueName syntax when calling enum.toString, this package fixes that.
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 9 days to 3.8 years
Nearly every release is documented
notes for 18 of 18 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
21 releases · first in 2019
Optimized _getCustomMapping method to avoid throwing exceptions for enums without custom values
_getCustomMapping method to avoid throwing exceptions for enums without custom valuesfromString method to avoid repeated conversionsAdded support for enhanced enums (Dart 2.17+)
One column per quarter.
Added new capitalizeWords flag to control word capitalization in camelCase conversion
capitalizeWords flag to control word capitalization in camelCase conversioncamelCase: true, setting capitalizeWords: true will capitalize all words instead of just the first oneNo reason not to be bumped to prod with null safety
Big version bump to try and get pub's outdated check to recognise a null safe version is available.
Added camelCase flag in "fromString" function to properly handle conversion back of a string with spaces to enum
Nothing published for this version
First attempt at moving to nullsafety. Cheers to @Sameerkash for spearheading the effort.
Fixed previous bug by replacing exception with an assertion. The library will no longer break in release mode with minified code, but it will also not
Fixing issue where minification in the web breaks the app. Unfortunately we can't safely check if the object type is an enum when compiled in release
Fixing major mistake, renaming new function to convertToString so as not to conflict with system calls
Deprecated parseCamelCase function in favour of toString(enumItem, camelCase: true)
BROKEN BUILD DO NOT USE
Added .toList function (Thanks @CodeGrue)
Better type handling in fromString method (Thanks @Sergey-Schirmer)
- Improving examples
Improving code robustness (Thanks @ewertonrp)
Added support for getting an enum from a string
- Better handling of null types
- Adding explicit types
- Improving my dart score
- Initial library release
Your coding agent can read these notes before it upgrades. Set up the MCP server →