EnumDefinition class
A representation of a yaml file in the protocol directory defining an enum.
- Inheritance
-
- Object
- SerializableModelDefinition
- EnumDefinition
Constructors
-
EnumDefinition({required String moduleAlias, required String fileName, required String sourceFileName, required String className, required EnumSerialization serialized, required List<
ProtocolEnumValueDefinition> values, required bool serverOnly, List<String> subDirParts = const [], List<String> ? documentation}) - Create a new EnumDefinition.
Properties
- className → String
-
finalinherited
-
documentation
→ List<
String> ? -
The documentation for this enum, line by line.
final
- fileName → String
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- moduleAlias → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialized → EnumSerialization
-
The type of serialization this enum should use.
final
- serverOnly → bool
-
finalinherited
- sourceFileName → String
-
finalinherited
-
subDirParts
→ List<
String> -
finalinherited
-
values
↔ List<
ProtocolEnumValueDefinition> -
All the values of the enum.
This also contains possible documentation for them.
getter/setter pair
Methods
-
fileRef(
) → String -
Generate the file reference String to this file.
inherited
-
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