Skeleton class
Static API for generating skeletons from widgets.
Example:
Skeleton.from(
ProductCard(product: fakeProduct),
)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
auto(
Widget child) → Widget - Generates a skeleton with zero configuration (uses all defaults).
-
custom(
{required Widget child, bool shimmer = true, Color? baseColor, Color? highlightColor, Duration? shimmerDuration, double? borderRadius}) → Widget - Creates a skeleton with custom configuration.
-
fast(
Widget child) → Widget - Generates a performance-optimized skeleton without shimmer.
-
from(
Widget child, {SkeletonConfig? config}) → Widget - Generates a skeleton from a widget.