Add case insensitive support to fromString, that is used many times to map from network services that results in case insensitive values.
Use firstWhere instead of singleWhere to prevent error when finds more than one value.
I know that enums don't have duplicated values, but it is a good practice.
Add case insensitive support to fromString, that is used many times to map from network services that results in case insensitive values.
Use firstWhere instead of singleWhere to prevent error when finds more than one value. I know that enums don't have duplicated values, but it is a good practice.