DefaultLoaderThemeData class

Defines the configuration of the overall visual Theme for a DefaultLoaderBuilder.

Constructors

DefaultLoaderThemeData({double loadingIndicatorSize = 40.0, double errorSpacing = 10.0, Axis errorLayoutDirection = Axis.vertical, ErrorMessageResolver errorMessageResolver = defaultErrorMessageResolver, bool showRetryWhenError = true, String retryLabel = 'Retry', Duration transitionDuration = const Duration(milliseconds: 250)})
const

Properties

errorLayoutDirection Axis
Layout direction for the error message and the retry button in DefaultLoaderBuilder.defaultErrorWidget.
final
errorMessageResolver ErrorMessageResolver
Resolves error message from a given error.
final
errorSpacing double
Spacing between the error message and the retry button in DefaultLoaderBuilder.defaultErrorWidget.
final
hashCode int
The hash code for this object.
no setterinherited
loadingIndicatorSize double
Size of the CircularProgressIndicator in DefaultLoaderBuilder.defaultInitWidget.
final
retryLabel String
Label for the retry button when there is an error.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showRetryWhenError bool
Whether to show the retry button when there is an error.
final
transitionDuration Duration
Duration for the UI transition between different LoaderState. Set to 0 will disable the transition animation.
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

Static Methods

of(BuildContext? context) DefaultLoaderThemeData
Retrieves the DefaultLoaderThemeData in the closest ancestor element.

Constants

defaultData → const DefaultLoaderThemeData
The default visual configuration for DefaultLoaderBuilder.