PropDescriptor class

Provides a representation of a single prop declared within a UiProps subclass or props mixin.

Related: StateDescriptor

Constructors

PropDescriptor(String key, {bool isRequired = false, bool isNullable = false, String errorMessage = '', bool isLate = false})
const

Properties

errorMessage String
The message included in the thrown PropError if the prop 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 prop to null is valid.
final
isRequired bool
Whether the prop is required to be set.
final
key String
The string key associated with the prop.
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