SegmentRenderer typedef

SegmentRenderer = Widget Function(BuildContext context, int index, dynamic data)

A function signature for a custom widget that renders a segment's content.

  • context: The build context.
  • index: The index of the segment being rendered.
  • data: The data associated with the segment (e.g., an image path, Lottie JSON).

Implementation

typedef SegmentRenderer = Widget Function(BuildContext context, int index, dynamic data);