ComponentSchema class
A component type's full schema, the unit that travels (dev channel, project cache, package manifests, MCP).
Constructors
-
ComponentSchema(String type, {String? doc, String? icon, int version = 1, List<
String> formerTypes = const [], List<ComponentPropertyDef> properties = const [], GizmoSpec? gizmo}) -
const
Properties
- doc → String?
-
A short description of the component.
final
-
formerTypes
→ List<
String> -
Prior type tags, accepted when loading older documents.
final
- gizmo → GizmoSpec?
-
The optional editor gizmo block; see GizmoSpec.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → String?
-
An optional editor icon hint (an emoji or a named glyph).
final
-
properties
→ List<
ComponentPropertyDef> -
The declared properties, in display order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The component type tag used in documents.
final
- version → int
-
The schema revision, for future migrations.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
property(
String name) → ComponentPropertyDef? -
The descriptor for
name, accepting ComponentPropertyDef.formerNames. -
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → ComponentSchema