MovaComponent class abstract
A single addressable node in the player's component tree.
Every node has a stable name used to build dotted/slashed paths for MovaPatch targeting, a slot deciding which region of the overlay it renders into, an order used for stable within-slot sorting, and optional children for composite nodes (e.g. a control-bar group). build receives its children already built as Widgets — composites never see raw MovaComponent children.
播放器组件树中的可寻址节点。
每个节点都有稳定的 name,用于拼接 MovaPatch 目标路径;slot 决定它 渲染到叠加层的哪个区域;order 用于同槽位内的稳定排序;children 是 组合节点(例如控制条分组)的可选子节点。build 收到的子节点已构建为 Widget——组合组件永远不会看到原始的 MovaComponent 子节点。
- Implementers
- MovaAdOverlayComponent
- MovaAvatarComponent
- MovaBackToLiveComponent
- MovaBottomBarComponent
- MovaBrightnessHudComponent
- MovaBufferingComponent
- MovaCenterPlayComponent
- MovaCommentButtonComponent
- MovaDanmakuTrackComponent
- MovaDouyinGestureLayerComponent
- MovaDurationLabelComponent
- MovaErrorComponent
- MovaFeedInfoComponent
- MovaFitButtonComponent
- MovaFullscreenButtonComponent
- MovaGestureLayerComponent
- MovaHudLayerComponent
- MovaLikeButtonComponent
- MovaLiveBadgeComponent
- MovaLockMaskComponent
- MovaLockToggleComponent
- MovaMiniCloseComponent
- MovaNextUpComponent
- MovaOrientButtonComponent
- MovaPipButtonComponent
- MovaPlayPauseComponent
- MovaPositionLabelComponent
- MovaPreviewComponent
- MovaQualityButtonComponent
- MovaSeekBarComponent
- MovaSeekHudComponent
- MovaShareButtonComponent
- MovaSocialRailComponent
- MovaSpeedButtonComponent
- MovaSubtitleButtonComponent
- MovaSubtitleOverlayComponent
- MovaTimeshiftLabelComponent
- MovaTitleComponent
- MovaTopBarComponent
- MovaVolumeHudComponent
- MovaZoomHudComponent
Constructors
Properties
-
children
→ List<
MovaComponent> -
Nested child components, if this node is a composite. Empty for leaves.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Stable identifier used for path matching in MovaPatch operations.
no setter
- order → int
-
Sort key within a slot; ascending, ties broken by original position.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → MovaSlot
-
The overlay region this component renders into.
no setter
Methods
-
build(
BuildContext context, IMovaApi api, List< Widget> children) → Widget - Builds the widget for this component.
-
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