ConditionalLayout<T extends ContentItem> class
abstract
- Inheritance
-
- Object
- LayoutConfiguration<
T> - ConditionalLayout
- Implementers
- Annotations
-
- @JsonSerializable(createFactory: false)
Constructors
-
ConditionalLayout({required String schemaType, required List<
LayoutCaseItem> cases, required String defaultCase, required Condition condition}) -
ConditionalLayout.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
cases
→ List<
LayoutCaseItem> -
final
- condition → Condition
-
final
- defaultCase → String
-
final
- 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.
finalinherited
Methods
-
build(
BuildContext context, T content) → Widget -
Builds the layout for the content item. This transforms the content into a Flutter Widget.
override
-
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