VideoItemModel class

处理单个视频相关

Inheritance

Constructors

VideoItemModel(VideoItem _videoItem, int _index, PlayCompleteCallback _onPlayComplete)

Properties

aa InheritedWidget
read / write
commentText String
read-only
currCommentCount int
read / write
currSupportCount int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
heartAnimNotifier ListHeartValeNotifier
read-only
index int
read-only
isAdShowed bool
read-only
isError bool
只有在被选中的时候,才显示错误、没有网络等状态
read-only
isLoading bool
read-only
isLooping bool
write-only
isNoNet bool
是否有网络
read-only
isSupported bool
read / write
listenerCount int
Returns the number of listeners listening to this model.
read-only, inherited
notiSupportInfo ValueNotifier<SupportBean>
read-only
pauseVisible bool
read-only
playerController VideoPlayerController
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
showPlayer bool
read-only
videoItem VideoItem
read-only
videoStartTime DateTime
read-only

Methods

addListener(VoidCallback listener) → void
listener will be invoked when the model changes.
inherited
applyPause([dynamic needNofiyListener = true]) → void
applyPlay([dynamic needNofiyListener = true]) → void
clickLikeVideoButtonWidget(bool isLiked) Future<bool>
点击 收藏 按钮 注:不必notifyListeners,因为givelike button会自动加一,根据返回值;
dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyListeners() → void
Should be called only by Model when the model has changed.
@protected, override
onClickErrorRetry() → void
onDoubleClickGiveLike(HeartInfo heart) → void
onNativeCommentResult(String oldCommentStr, int newCommentCount) → void
native执行了评论操作,评论数 + 1;
onPageChanged(int currPageIndex) → void
onPause() → void
onResume() → void
removeListener(VoidCallback listener) → void
listener will no longer be invoked when the model changes.
inherited
setPauseOrResume() → void
设置单击之后的执行的操作
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

of(BuildContext ctx) VideoItemModel