Last updated:
0 purchases
enum object
Converts enum value to String and vice versa
Usage #
A simple usage example:
import 'package:enum_object/enum_object.dart';
main() {
// convert enum value to string
print(TestEnum.test.enumValue);
// convert String to enum value
var enumObject = EnumObject<TestEnum>(TestEnum.values);
print(enumObject.enumFromString('test2'));
}
enum TestEnum{
test, test2
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.