ReactComponentFactory<P> class final

A typed factory for a component already registered with the React runtime.

Generated component APIs can expose this shape while retaining their existing named-parameter convenience functions. The factory is also useful for handwritten component catalogs and wrapper packages.

Constructors

ReactComponentFactory({required ComponentId id, ReactComponentMetadata? metadata})
Creates a factory for the registered component identified by id.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → ComponentId
Stable registry identifier used by browser and SSR renderers.
final
metadata → ReactComponentMetadata?
Optional tooling metadata.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call(P props, {ReactChildren children = const [], String? key}) → ReactNode
Creates a component node with typed props and children.
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