LayoutConfiguration<T extends ContentItem> class
abstract
Base class for a Layout Configuration. A layout configuration is used to configure the visual layout of a content item.
- Implemented types
Constructors
- LayoutConfiguration({required String schemaType})
- Creates an instance of LayoutConfiguration.
-
LayoutConfiguration.fromJson(Map<
String, dynamic> json) -
Converts the JSON representation of the layout configuration to an instance of LayoutConfiguration.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schemaType → String
-
The schema type of the content item.
final
Methods
-
build(
BuildContext context, T content) → Widget - Builds the layout for the content item. This transforms the content into a Flutter Widget.
-
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