ContentBuilder<T extends ContentItem> class
Constructors
-
ContentBuilder({required TypeDescriptor<
T> content, required LayoutConfiguration<T> defaultLayout, required TypeDescriptor<LayoutConfiguration< defaultLayoutDescriptor})T> >
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< descriptors, {bool checkUnique = false}) → voidU> > -
setDefaultLayout(
LayoutConfiguration< T> layout, {required FromJsonConverter<LayoutConfiguration< fromJson, String? sourceFeatureName}) → dynamicT> > -
setSourceFeature(
String? featureName) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited