ContentModifierConfiguration class abstract

Configuration for modifying content presentation.

Content modifiers allow you to wrap content items with additional functionality or styling. They can be used to add:

  • Animation effects
  • Layout modifications
  • Interaction handlers
  • Debug overlays

Modifiers are applied in order, wrapping the content item's widget tree from inside out.

Example:

class FadeInModifier extends ContentModifierConfiguration {
  @override
  Widget build(BuildContext context, Widget child, ContentItem content) {
    return FadeInAnimation(child: child);
  }
}
Implemented types
Implementers

Constructors

ContentModifierConfiguration({required String schemaType})
ContentModifierConfiguration.fromJson(Map<String, dynamic> json)
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, Widget child, ContentItem content) → Widget
Builds the modifier widget tree for the given content item.
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