MovaAvatarComponent class
Author avatar; tapping the avatar fires MovaFeedItem.onAvatarTap, tapping the small follow badge beneath it fires MovaFeedItem.onFollowTap. mova holds no follow state of its own (see MovaFeedItem's doc comment) — the badge always renders, its actual meaning is the host's.
作者头像;点头像触发 MovaFeedItem.onAvatarTap,点下方小号关注角标触发 MovaFeedItem.onFollowTap。mova 不持有关注状态(见 MovaFeedItem 文档 注释)——角标恒定渲染,其实际含义由宿主决定。
- Inheritance
-
- Object
- MovaComponent
- MovaAvatarComponent
Constructors
- MovaAvatarComponent({required MovaFeedItem item})
- Creates the avatar 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
- item → MovaFeedItem
-
Metadata + callbacks for the current page.
final
- 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 the widget for this component.
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.