Experimental: this API is experimental and might be changed or removed in the future.

EnumFieldConstructor

Switch to Manual
public EnumField (Enum defaultValue);

Parameters

defaultValueInitial value. Also used to detect Enum type.

Description

Construct an EnumField.