ReactComponentMetadata class final

Metadata describing a component for tooling and documentation.

Metadata is intentionally renderer-neutral. It can be attached to a generated component descriptor without affecting the node representation.

Constructors

ReactComponentMetadata({required String name, String? description, String? propsType, bool supportsRef = false, bool isForeign = false})
Creates metadata for a component.
const

Properties

description String?
Optional human-readable description.
final
hashCode int
The hash code for this object.
no setterinherited
isForeign bool
Whether the component is implemented by a foreign JS module.
final
name String
Public component name.
final
propsType String?
Dart type name used by generated documentation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsRef bool
Whether the component accepts a forwarded ref.
final

Methods

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