name property

String get name

Gets the string representation of the UserType.

Returns the enum value's name in lowercase (e.g., 'farmer' or 'consumer').

Returns: A String representing the name of the UserType.

Implementation

String get name => toString().split('.').last;