RPCarouselBarBuilder typedef

RPCarouselBarBuilder = Widget Function(BuildContext context, int stepIndex, int stepCount)

Signature for building a replacement for the default carousel bar shown at the top of an RPUITask.

stepIndex is the zero-based index of the step currently on screen. stepCount is the number of steps in the task — for an RPNavigableOrderedTask not every step is necessarily shown, so it is an upper bound rather than an exact total.

Implementation

typedef RPCarouselBarBuilder = Widget Function(
  BuildContext context,
  int stepIndex,
  int stepCount,
);