Add enhanced enum functions to FlexScheme
to get its associated data and colors
#210
Labels
enhancement
New feature or request
package
Report concerns the FlexColorScheme core package
planned
This issue is being planned and will be addressed in a later release
V8
This issue concerns version 8 and will be addressed in it
Milestone
Add enhanced enum functions
data
andcolors
to theFlexScheme
enum, that returns the predefinedFlexSchemeData
andFlexSchemeColor
respectively, that are associated with a given enum value.This can be done already using the
FlexColor.schemes
map, this is a convenience API to be able to use e.g.FlexColor.mango.data
to get the predefinedFlexSchemeData
for themango
enum scheme and e.g.FlexColor.barossa.colors(Brightness.dark)
to get the pre-defined dark colors used for thebarossa
scheme colors.The idea and usefulness of this minor API convenience came up in this discussion here: #204 (reply in thread)
The text was updated successfully, but these errors were encountered: