toShortString method

String toShortString()

Converts enum to the string equal to enum's name.

Implementation

String toShortString() => toString().split('.').last;