ReelModal class
Constructors
-
ReelModal({required dynamic videoSource, String? videoPosterImage, CachedVideoPlayerController? videoPlayerController, int index = 0})
-
creates a video model
videoSource
must not be null
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
index
↔ int
-
page index associated with video
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
videoPlayerController
↔ CachedVideoPlayerController?
-
video player controller
getter/setter pair
-
videoPosterImage
↔ String?
-
video Poster image to show until video is loads
getter/setter pair
-
videoSource
↔ dynamic
-
source for video network, file or asset
getter/setter pair
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
playVideo(int index)
→ void
-
plays current video
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateVideo({dynamic videoSource, dynamic videoPlayerController, dynamic videoPosterImage, dynamic index})
→ void
-
updates
videoPlayerController
, videoSource
, videoPosterImage
and index
when video get initialized
Static Properties
-
currentIndex
↔ int
-
holds current page index for preload preview
getter/setter pair