enum extention dart code example
Example: enum extention dart
enum SelectedColor { primaryColor, secondaryColor,}
extension SelectedColorExtension on SelectedColor
{
String get textAsString => this.toString().split(".")[1];
}
enum SelectedColor { primaryColor, secondaryColor,}
extension SelectedColorExtension on SelectedColor
{
String get textAsString => this.toString().split(".")[1];
}