ForeignComponent class final

A component implemented by a JavaScript/TypeScript React module.

The name is resolved from globalThis.__reactDartForeignComponents, which lets Dart components use TSX without importing browser-only JS interop into the portable React tree model.

Inheritance

Constructors

ForeignComponent(String name, {Map<String, Object?> props = const {}, String? key, List<ReactNode> children = const []})
const

Properties

children List<ReactNode>
final
hashCode int
The hash code for this object.
no setterinherited
key String?
final
name String
final
props Map<String, Object?>
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
toString() String
A string representation of this object.
inherited

Operators

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