ReactValueSpec typedef

ReactValueSpec = ({String? codecId, String? hostNamespace, ReactValueKind kind, bool nullable, String? typeId})

Specification for a single callback argument or return value.

Implementation

typedef ReactValueSpec = ({
  /// The kind of value expected or returned.
  ReactValueKind kind,

  /// Whether `null` or `undefined` is accepted.
  bool nullable,

  /// Renderer that owns this value.
  ///
  /// Examples: "web", "test".
  String? hostNamespace,

  /// Stable type identifier used for diagnostics and generated adapters.
  ///
  /// Example:
  /// package:react_web/events.dart#ReactMouseEvent
  String? typeId,

  /// The codec ID for custom [ReactValueKind.encodedObject] values.
  String? codecId,
});