leadingItem property

int get leadingItem

The current leading item index in the M3ECarouselView.

Implementation

int get leadingItem {
  assert(
    positions.isNotEmpty,
    'CarouselController.leadingItem cannot be accessed before a CarouselView is built with it.',
  );
  assert(
    positions.length == 1,
    'CarouselController.leadingItem cannot be read when multiple CarouselViews '
    'are attached to the same controller.',
  );
  return (position as _CarouselPosition).leadingItem;
}