convertToString static method

String convertToString(
  1. dynamic enumItem
)

Implementation

static String convertToString(dynamic enumItem) {
  assert(enumItem != null);
  assert(_isEnumItem(enumItem),
      '$enumItem of type ${enumItem.runtimeType.toString()} is not an enum item');
  final _tmp = enumItem.toString().split('.')[1];
  return _tmp;
}