MjOptions class
Constructors
- 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})
Properties
- aspectRatio ↔ double
-
Aspect ratio is used if no height have been declared.
getter/setter pair
- autoPlayAnimationDuration ↔ Duration
-
The animation duration between two transitioning pages while in auto playback.
getter/setter pair
- autoPlayCurve ↔ Curve
-
Determines the animation curve physics.
getter/setter pair
- autoPlayInterval ↔ Duration
-
Sets Duration to determent the frequency of slides when
getter/setter pair
- enableInfiniteScroll ↔ bool
-
Determines if slider should loop infinitely or be limited to item length.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height ↔ double?
-
Set slider height and overrides any existing aspectRatio.
getter/setter pair
- initialPage ↔ int
-
The initial page to show when first creating the Slider.
getter/setter pair
- onPageChanged ↔ dynamic Function(int index)?
-
Called whenever the page in the center of the viewport changes.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollDirection ↔ Axis
-
The axis along which the page view scrolls.
getter/setter pair
- viewportFraction ↔ double
-
The fraction of the viewport that each page should occupy.
getter/setter pair
- width ↔ double?
-
Set slider width and overrides any existing aspectRatio.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited