ShimmerSlot<T> constructor

const ShimmerSlot<T>({
  1. Key? key,
  2. required Signal<T> connect,
  3. required Widget to(
    1. BuildContext context,
    2. T value
    ),
  4. required bool when(
    1. T value
    ),
  5. required Widget shimmer,
  6. Duration duration = const Duration(milliseconds: 1500),
  7. Color baseColor = const Color(0xFFE0E0E0),
  8. Color highlightColor = const Color(0xFFF5F5F5),
})

Implementation

const ShimmerSlot({
  super.key,
  required this.connect,
  required this.to,
  required this.when,
  required this.shimmer,
  this.duration = const Duration(milliseconds: 1500),
  this.baseColor = const Color(0xFFE0E0E0),
  this.highlightColor = const Color(0xFFF5F5F5),
});