UnknownContentBuilder class
Builder for unknown content that provides a visual indicator for missing content types.
This builder is used when the system encounters a content type that:
- Has no registered type descriptor
- Is missing from the content registry
- Has an invalid schema type
Example:
final builder = UnknownContentBuilder();
- Inheritance
-
- Object
- ContentBuilder<
Unknown> - UnknownContentBuilder
Constructors
Properties
-
content
→ TypeDescriptor<
Unknown> -
The type descriptor for the content type
T
.finalinherited -
defaultLayout
→ LayoutConfiguration<
Unknown> -
no setterinherited
-
defaultLayoutDescriptor
→ TypeDescriptor<
LayoutConfiguration< Unknown> > -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
layouts
→ List<
TypeDescriptor< LayoutConfiguration< >ContentItem> > -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceFeature → String?
-
no setterinherited
Methods
-
build(
BuildContext context, Unknown content) → Widget -
Builds a widget for the given content item.
inherited
-
init(
List< ContentDescriptor> descriptors) → void -
Initializes this content builder with the given descriptors.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerDescriptors<
U> (Iterable< TypeDescriptor< descriptors, {bool checkUnique = false}) → voidU> > -
Registers a list of type descriptors with the content system.
inherited
-
setDefaultLayout(
LayoutConfiguration< Unknown> layout, {required FromJsonConverter<LayoutConfiguration< fromJson, String? sourceFeatureName}) → dynamicUnknown> > -
Sets the default layout for this content builder.
inherited
-
setSourceFeature(
String? featureName) → dynamic -
Updates the source feature for this builder and its layouts.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited