EnumDeprecationInfo class

Deprecation information for enum types (calls, events, errors).

Maps variant indices to their deprecation status. Variants not in the map are implicitly not deprecated.

Reference: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v16.rs#L473-L510

Constructors

EnumDeprecationInfo(Map<int, VariantDeprecationInfo> deprecatedVariants)
const

Properties

deprecatedVariants Map<int, VariantDeprecationInfo>
Map of variant index to deprecation info
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getVariantDeprecation(int variantIndex) VariantDeprecationInfo?
Get deprecation info for a specific variant
isVariantDeprecated(int variantIndex) bool
Check if a specific variant is deprecated
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

codec → const $EnumDeprecationInfo
Codec instance for EnumDeprecationInfo
empty → const EnumDeprecationInfo
Empty deprecation info (no deprecated variants)