ManagedSlot class final

A place in a managed component that holds the instance's own nodes.

JSON: {"key": "header", "label": "Header", "node": "hdr", "accepts": "any"}: node is the version's node (an id in its definition) whose children the slot's content replaces.

Annotations
  • @immutable

Constructors

ManagedSlot({required String key, String label = '', required String node, String accepts = 'any'})
const

Properties

accepts → String
any, image or text: what the editor offers to put in it.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
final
label → String
final
node → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Object? json) → ManagedSlot?