VideoBlockComponentBuilder class
Constructors
- VideoBlockComponentBuilder({BlockComponentConfiguration configuration = const BlockComponentConfiguration(), bool showMenu = false, VideoBlockWidgetBuilder? placeholderBuilder, VideoBlockWidgetBuilder? errorBuilder, VoidVideoCallback? onLongPress, VoidVideoCallback? onDoubleTap})
Properties
- actionBuilder ↔ BlockActionBuilder
-
getter/setter pairinherited
- configuration ↔ BlockComponentConfiguration
-
getter/setter pairinherited
- errorBuilder → VideoBlockWidgetBuilder?
-
The error widget will be rendered when the src is not a valid URL.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
final
- onDoubleTap → VoidVideoCallback?
-
A callback that once the video player is double tapped, will be invoked.
final
- onLongPress → VoidVideoCallback?
-
A callback that once the video player is long pressed, will be invoked.
final
- placeholderBuilder → VideoBlockWidgetBuilder?
-
The placeholder will be rendered when the src is null or empty.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showActions ↔ bool Function(Node)
-
getter/setter pairinherited
- showMenu → bool
-
Whether to show the menu of this block component.
final
Methods
-
build(
BlockComponentContext blockComponentContext) → BlockComponentWidget -
end(
Node node) → Position -
the end position of the block component.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
Node node) → Position -
the start position of the block component.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
Node node) → bool - validate the node.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited