Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:core
  3. Enum class
Enum
description

Enum classabstractinterface

An enumerated value.

This class is implemented by all types and valuesintroduced using anenum declaration.Non-platform classes cannot extend or mix in this class.Concrete classes cannot implement the interface.

The identifier used to name anenum value is available as aString,via theEnumName.name extension property on theenum value.

Available extensions
Annotations
  • @Since.new("2.14")

Properties

hashCodeint
The hash code for this object.
no setterinherited
indexint
A numeric identifier for the enumerated value.
no setter
nameString

Available onEnum, provided by theEnumName extension

The name of the enum value.
no setter
runtimeTypeType
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocationinvocation)→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString()String
A string representation of this object.
inherited

Operators

operator ==(Objectother)bool
The equality operator.
inherited

Static Methods

compareByIndex<T extendsEnum>(Tvalue1,Tvalue2)int
Compares two enum values by theirindex.
compareByName<T extendsEnum>(Tvalue1,Tvalue2)int
Compares enum values by name.
  1. Dart
  2. dart:core
  3. Enum class
dart:core library

[8]ページ先頭

©2009-2025 Movatter.jp