MovaQualityButtonComponent class
Quality-picker button; hides when the current source has no selectable quality variants.
Reproduces 0.1.0's showModalBottomSheet quality picker
(player.dart's _showQualityMenu): a bottom sheet listing every
MovaQuality, checkmarking the active one, and calling
IMovaApi.switchQuality on tap.
清晰度选择按钮;当前源无可选清晰度档位时隐藏。
复刻 0.1.0 的 showModalBottomSheet 清晰度选择器(player.dart 的
_showQualityMenu):底部弹出列出全部 MovaQuality,勾选当前档位,点击
调用 IMovaApi.switchQuality。
- Inheritance
-
- Object
- MovaComponent
- MovaQualityButtonComponent
Constructors
- MovaQualityButtonComponent()
- Creates the quality-button leaf component.
Properties
-
children
→ List<
MovaComponent> -
Nested child components, if this node is a composite. Empty for leaves.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Stable identifier used for path matching in MovaPatch operations.
no setteroverride
- order → int
-
Sort key within a slot; ascending, ties broken by original position.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → MovaSlot
-
The overlay region this component renders into.
no setteroverride
Methods
-
build(
BuildContext context, IMovaApi api, List< Widget> children) → Widget -
Builds quality controls with one caption for text and semantics.
override
-
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
Constants
- componentName → const String
-
This component's path segment for
MovaPatchaddressing.