ContentBuilder<T extends ContentItem> class

Constructors

ContentBuilder({required TypeDescriptor<T> content, required LayoutConfiguration<T> defaultLayout, required TypeDescriptor<LayoutConfiguration<T>> defaultLayoutDescriptor})

Properties

content → TypeDescriptor<T>
final
defaultLayout → LayoutConfiguration<T>
no setter
defaultLayoutDescriptor → TypeDescriptor<LayoutConfiguration<T>>
no setter
hashCode int
The hash code for this object.
no setterinherited
layouts List<TypeDescriptor<LayoutConfiguration<ContentItem>>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceFeature String?
no setter

Methods

build(BuildContext context, T content) Widget
init(List<ContentDescriptor> descriptors) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDescriptors<U>(Iterable<TypeDescriptor<U>> descriptors, {bool checkUnique = false}) → void
setDefaultLayout(LayoutConfiguration<T> layout, {required FromJsonConverter<LayoutConfiguration<T>> fromJson, String? sourceFeatureName}) → dynamic
setSourceFeature(String? featureName) → dynamic
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited