useAutoShimmer property

bool useAutoShimmer
final

Whether to use auto-shimmer mode.

When true, the itemBuilder is used for both loading and loaded states. Wrap your item content with UIProShimmerWrap widgets to define what shows as shimmer vs content.

Example:

UIProListView(
  isLoading: isLoading,
  itemCount: items.length,
  useAutoShimmer: true,
  itemBuilder: (context, index) => ListTile(
    leading: UIProShimmerWrap.circle(
      size: 48,
      child: CircleAvatar(child: Text(items[index].initials)),
    ),
    title: UIProShimmerWrap.text(
      child: Text(items[index].name),
    ),
  ),
)

Implementation

final bool useAutoShimmer;