MjOptions constructor
MjOptions({
- double? height,
- double? width,
- double aspectRatio = 16 / 9,
- double viewportFraction = 0.8,
- int initialPage = 0,
- bool enableInfiniteScroll = true,
- Duration autoPlayInterval = const Duration(seconds: 4),
- Duration autoPlayAnimationDuration = const Duration(milliseconds: 800),
- Curve autoPlayCurve = Curves.fastOutSlowIn,
- dynamic onPageChanged(
- int index
- Axis scrollDirection = Axis.horizontal,
Implementation
MjOptions({
this.height,
this.width,
this.aspectRatio: 16 / 9,
this.viewportFraction: 0.8,
this.initialPage: 0,
this.enableInfiniteScroll: true,
this.autoPlayInterval: const Duration(seconds: 4),
this.autoPlayAnimationDuration = const Duration(milliseconds: 800),
this.autoPlayCurve: Curves.fastOutSlowIn,
this.onPageChanged,
this.scrollDirection: Axis.horizontal,
});