LoadingStyle class

The LoadingStyle class is used to determine the type of loading widget

Constructors

LoadingStyle({Widget? child, LoadingStyleType type = LoadingStyleType.normal})
LoadingStyle.none()
Construct a LoadingStyle.none widget. This will not display any loading widget.
const
LoadingStyle.normal({Widget? child})
Construct a LoadingStyle.normal widget. Provide a child to display a custom loading widget. By default, the Nylo app loader will be displayed.
LoadingStyle.skeletonizer({Widget? child, SkeletonizerEffect? effect})
Construct a LoadingStyle.skeletonizer widget. Provide a child to display a custom loading widget. Optionally provide an effect to customize the skeleton animation. By default, the skeletonizer will use a shimmer effect.

Properties

child Widget?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skeletonizerEffect SkeletonizerEffect?
final
type LoadingStyleType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({Widget? child}) Widget
Render the loading widget. For LoadingStyleType.skeletonizer, pass child to wrap a specific widget.
toString() String
A string representation of this object.
inherited

Operators

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