StateDescriptor class

Provides a representation of a single state declared within a UiState subclass or state mixin.

Related: PropDescriptor

Constructors

StateDescriptor(String key, {bool isRequired = false, bool isNullable = false, String? errorMessage, bool isLate = false})
const

Properties

errorMessage String?
The message included in the thrown error if the state is not set.
final
hashCode int
The hash code for this object.
no setterinherited
isLate bool
Whether the prop has the late keyword.
final
isNullable bool
Whether setting the state to null is valid.
final
isRequired bool
Whether the state is required to be set.
final
key String
The string key associated with the state.
final
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.
inherited

Operators

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