MyLoadingEffect constructor
const
MyLoadingEffect({})
Creates a MyLoadingEffect widget.
Parameters:
child: The widget to which the shimmer effect is applied (required).baseColor: The base color of the shimmer (optional, defaults to light gray in light mode, dark gray in dark mode).highlightColor: The highlight color of the shimmer (optional, defaults to lighter gray in light mode, lighter dark gray in dark mode).duration: The duration of the animation cycle (default: 800ms).key: An optional key to control the widget's identity.
Implementation
const MyLoadingEffect({
super.key,
required this.child,
this.baseColor,
this.highlightColor,
this.duration = const Duration(milliseconds: 800),
});