MjOptions constructor

MjOptions({
  1. double? height,
  2. double? width,
  3. double aspectRatio = 16 / 9,
  4. double viewportFraction = 0.8,
  5. int initialPage = 0,
  6. bool enableInfiniteScroll = true,
  7. Duration autoPlayInterval = const Duration(seconds: 4),
  8. Duration autoPlayAnimationDuration = const Duration(milliseconds: 800),
  9. Curve autoPlayCurve = Curves.fastOutSlowIn,
  10. dynamic onPageChanged(
    1. int index
    )?,
  11. 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,
});