enum_object

Last updated:

0 purchases

enum_object Image
enum_object Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.