CarouselBloc constructor
CarouselBloc()
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);
}