CarouselBloc constructor

CarouselBloc(
  1. double page,
  2. double startPosition,
  3. double currentPosition,
  4. double childSize,
  5. double scrollSpeedMultiplier,
  6. int listSize,
  7. int lengthMultiplier,
)

Implementation

CarouselBloc(
  double page,
  double startPosition,
  double currentPosition,
  double childSize,
  double scrollSpeedMultiplier,
  int listSize,
  int lengthMultiplier,
) : super(
        CarouselScrollState(
          page: page,
          startPosition: startPosition,
          currentPosition: currentPosition,
          childSize: childSize,
          scrollSpeedMultiplier: scrollSpeedMultiplier,
          listSize: listSize,
          lengthMultiplier: lengthMultiplier,
        ),
      ) {
  on<OnHorizontalDragStart>(_onHorizontalDragStart);
  on<OnHorizontalDragUpdate>(_onHorizontalDragUpdate);
  on<OnHorizontalDragEnd>(_onHorizontalDragEnd);
}