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.

Inheritance
Available extensions

Values

notSpecified → const ClientSex
const ClientSex('NOT_SPECIFIED')
male → const ClientSex
const ClientSex('MALE')
female → const ClientSex
const ClientSex('FEMALE')
other → const ClientSex
const ClientSex('OTHER')

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.

Constants

values → const List<ClientSex>
A constant List of the values in this enum, in order of their declaration.