VyuhContentBinding class final

The binding layer for the VyuhContentWidget. It provides access to various plugins, including the content plugin. You can also customize the default widget builders for showing loaders and errors.

Constructors

VyuhContentBinding()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Properties

content → ContentPlugin
The default content plugin used by the VyuhContentWidget.
no setter
standardDescriptors List<ContentExtensionDescriptor>
The default descriptors used by the VyuhContentWidget. It includes the Document type and several content-types from the vyuh_feature_system package.
final
widgetBuilder → PlatformWidgetBuilder
The default widget builder used by the VyuhContentWidget.
no setter

Static Methods

dispose() Future<void>
init({required PluginDescriptor plugins, List<ContentExtensionDescriptor>? descriptors, PlatformWidgetBuilder? widgetBuilder, Future<void> onReady(VyuhBinding)?}) → void
Initializes the binding layer for the VyuhContentWidget. This is a required call before using the widget. It takes in a PluginDescriptor and optional parameters for customizing the widget builders. The descriptors are used for extending the default content types and content builders. You can also be notified once the binding layer is completely ready by providing an onReady callback.