ContentItem class abstract

The base class for all content items. A content item represents a piece of content that can be rendered on the screen and fetched from a Content Management System (CMS).

Implemented types
Implementers
Annotations
  • @JsonSerializable(createFactory: false)

Constructors

ContentItem({required String schemaType, LayoutConfiguration<ContentItem>? layout})
Creates an instance of ContentItem.
ContentItem.fromJson(Map<String, dynamic> json)
Converts the JSON representation of the content item to an instance of ContentItem.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
layout LayoutConfiguration<ContentItem>?
The layout configuration for the content item.
final
parent ContentItem?
The parent content item of this content item. This is used internally by the content system.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaType String
The schema type of the content item.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setParent(Iterable<ContentItem?> children) → void
Sets the parent content item for the given list of children.
toString() String
A string representation of this object.
inherited

Operators

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