ignoreSkeleton method

Widget ignoreSkeleton()

Excludes the widget from skeleton effects in its parent skeleton context.

Wraps the widget with Skeleton.ignore to prevent skeleton transformation even when placed within a skeleton-enabled parent. Useful for preserving interactive elements or dynamic content within skeleton layouts.

Returns: A Skeleton.ignore wrapper that prevents skeleton effects on this widget.

Example:

Column(children: [
  Text('Loading content...'),
  Button(
    onPressed: () {},
    child: Text('Cancel'),
  ).ignoreSkeleton(), // Button remains interactive
]).asSkeleton();

Implementation

Widget ignoreSkeleton() {
  return Skeleton.ignore(child: this);
}