Spec-Zone.ru › Dart 2

dart:core

Enum class

An enumerated value.

This class is implemented by all types and values introduced using an enum declaration. Non-platform classes cannot implement, extend or mix in this class.

Available Extensions
  • EnumName
Annotations
  • @Since("2.14")

Constructors

Enum()

Properties

hashCode → int
read-onlyinherited
The hash code for this object.
index → int
read-only
A numeric identifier for the enumerated value.
runtimeType → Type
read-onlyinherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed.
toString() → String
inherited
A string representation of this object.

Operators

operator ==(Object other) → bool
inherited
The equality operator.

Static Methods

compareByIndex<T extends Enum>(T value1, T value2) → int
Compares two enum values by their index.
compareByName<T extends Enum>(T value1, T value2) → int
Compares enum values by name.

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/Enum-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API