LinkPreviewBlockComponentBuilder class
Constructors
- LinkPreviewBlockComponentBuilder({BlockComponentConfiguration configuration = const BlockComponentConfiguration(), LinkPreviewBlockPreviewBuilder? builder, WidgetBuilder? errorBuilder, WidgetBuilder? loadingBuilder, bool showMenu = false, LinkPreviewDataCacheInterface? cache})
Properties
- actionBuilder ↔ BlockActionBuilder
-
getter/setter pairinherited
- builder → LinkPreviewBlockPreviewBuilder?
-
The builder for the preview widget.
final
- cache → LinkPreviewDataCacheInterface?
-
customize your own cache if you don't want the link preview block refresh every time
final
- configuration ↔ BlockComponentConfiguration
-
getter/setter pairinherited
- errorBuilder → WidgetBuilder?
-
The builder for the error widget.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadingBuilder → WidgetBuilder?
-
The builder for the loading widget.
final
-
The builder for the menu widget.
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.
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