simpleEnumToString<T> function

String? simpleEnumToString<T>(
  1. T enumValue
)

Simple enum to String function, just takes whatever is after the "." and returns it as a String

Implementation

String? simpleEnumToString<T>(T enumValue) =>
    enumValue?.toString().split('.').last;