dart:core
庫中EnumName.name
屬性的用法介紹如下。
用法:
String name
枚舉值的名稱。
名稱是一個字符串,其中包含用於聲明枚舉值的源標識符。
例如,給定如下聲明:
enum MyEnum {
value1,
value2
}
MyEnum.value1.name
的結果是字符串 "value1"
。
相關用法
- Dart Enum.compareByIndex用法及代碼示例
- Dart Enum.compareByName用法及代碼示例
- Dart Element.children用法及代碼示例
- Dart Element.tag用法及代碼示例
- Dart Element.querySelectorAll用法及代碼示例
- Dart Event.eventType用法及代碼示例
- Dart EventStreamProvider.forTarget用法及代碼示例
- Dart Element.animate用法及代碼示例
- Dart Element.created用法及代碼示例
- Dart ElementList.classes用法及代碼示例
- Dart Events用法及代碼示例
- Dart EventStreamProvider.forElement用法及代碼示例
- Dart Element.querySelector用法及代碼示例
- Dart Element.insertAdjacentHtml用法及代碼示例
- Dart Element.dataset用法及代碼示例
- Dart Element.html用法及代碼示例
- Dart Element.classes用法及代碼示例
- Dart Error用法及代碼示例
- Dart MapMixin.containsKey用法及代碼示例
- Dart Iterator用法及代碼示例
- Dart AttributeClassSet.intersection用法及代碼示例
- Dart num.sign用法及代碼示例
- Dart TransformList.last用法及代碼示例
- Dart FileList.first用法及代碼示例
- Dart CanvasRenderingContext2D.drawImageScaledFromSource用法及代碼示例
注:本文由純淨天空篩選整理自dart.dev大神的英文原創作品 name property。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。