SendStateType enum

The different types of states that can be represented in SendController.

Inheritance
Available extensions

Values

idle → const SendStateType

Represents the idle state when there is no request is in progress.

loading → const SendStateType

Represents the loading state when a request is in progress.

success → const SendStateType

Represents the success state when a request is successfully submitted.

failed → const SendStateType

Represents the failed state when a request submission fails.

error → const SendStateType

Represents the error state when an error occurs during request submission.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJSON Map<String, dynamic>
Encode SendStateType to json.
no setter

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

Static Methods

fromJSON(Map<String, dynamic> json) SendStateType
Decode json to SendStateType.

Constants

values → const List<SendStateType>
A constant List of the values in this enum, in order of their declaration.