ClientSex enum
This is defining an enumeration type called ClientSex with four possible values: notSpecified,
male, female, and other. Each value is assigned a string representation that corresponds to
the value's name in all caps.
Values
Properties
- clientSex → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getSexAsString(
) → String - The function returns the client's sex as a string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getClientSexFromString(
String string) → ClientSex - This function returns a ClientSex enum value based on a given string input.