Enum

Enum's syntax is the same to Dart.

enum Country {
  unitedStates,
  japan,
  iraq,
  ukraine,
}

However, to use a enum is not very convenient for now since code autocompletion is not implemented in the IDE tool yet.

This syntax exists mainly for external Dart values.

Last Updated:
Contributors: 邵燃