enum_converter 1.0.0
enum_converter: ^1.0.0 copied to clipboard

IP5 demo package. Simple converter of dart enum values to strings. Example - input Test.VAL1 output 'VAL1'

example/main.dart

import 'package:enum_converter/enum_converter.dart';

void main() {
  // Output: VAL1
  print(EnumConverter.convert(Test.VAL1));
  // Output: VAL2
  print(EnumConverter.convert(Test.VAL2));
}

enum Test {
  VAL1,
  VAL2,
}
2
likes
100
pub points
0%
popularity

IP5 demo package. Simple converter of dart enum values to strings. Example - input Test.VAL1 output 'VAL1'

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on enum_converter