Enum class
Enum type definition.
Constructors
-
Enum({Input<
String> ? edition, Input<List< ? enumvalue, Input<EnumValue> >String> ? name, Input<List< ? options, Input<Option> >SourceContext> ? sourceContext, Input<EnumSyntax> ? syntax}) -
Creates a new Enum.
editionThe source edition string, only valid when syntax is SYNTAX_EDITIONS.enumvalueEnum value definitions.nameEnum type name.optionsProtocol buffer options.sourceContextThe source context.syntaxThe source syntax.const -
Enum.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
edition
→ Input<
String> ? -
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
final
-
enumvalue
→ Input<
List< ?EnumValue> > -
Enum value definitions.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
name
→ Input<
String> ? -
Enum type name.
final
-
options
→ Input<
List< ?Option> > -
Protocol buffer options.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sourceContext
→ Input<
SourceContext> ? -
The source context.
final
-
syntax
→ Input<
EnumSyntax> ? -
The source syntax.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited