StorageEntryModifier enum

A storage entry modifier indicates how a storage entry is returned when fetched and what the value will be if the key is not present. Specifically this refers to the "return type" when fetching a storage entry, and what the value will be if the key is not present.

optional means you should expect an T?, with null returned if the key is not present. default_ means you should expect a T with the default value of default if the key is not present.

Inheritance
Available extensions

Values

optional → const StorageEntryModifier

The storage entry returns an Option<T>, with None if the key is not present.

default_ → const StorageEntryModifier

The storage entry returns T::Default if the key is not present.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

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

Methods

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

Operators

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

Constants

codec → const $StorageEntryModifierCodec
values → const List<StorageEntryModifier>
A constant List of the values in this enum, in order of their declaration.