convertToString static method

String convertToString(
  1. dynamic enumItem
)

Implementation

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