DesignSearchError class

A search that failed, as a combobox's or a tag input's errorBuilder gets it: paint a message and a "Try again" (DesignLocalizations.retryButtonLabel) that calls retry, lit while focused.

DesignSearchError(error: StateError('offline'), retry: () {})
Annotations

Constructors

DesignSearchError({required Object error, StackTrace? stackTrace, required VoidCallback retry, bool focused = false})
A search that threw error.
const

Properties

error → Object
What the search threw.
final
focused → bool
Whether the keys are on "Try again" (Down from the field moves there, Enter then runs retry): paint it as a highlighted option.
final
hashCode → int
The hash code for this object.
no setterinherited
retry → VoidCallback
Runs the search again for the same words.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
Where it threw, when known.
final

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