Global registry of message codecs.
Generated message libraries register themselves on import via a top-level
registerXxxMsgs() call, so the common case needs no user setup.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Properties
-
knownTypes
→ Iterable<
String> -
All registered ROS type names.
no setter
Static Methods
-
byRosType(
String rosType) → MessageCodec< Object?> ? -
Resolves the codec for a ROS type name, or
nullif unregistered. -
has<
T> () → bool -
True if Dart type
Thas a registered codec. -
of<
T> () → MessageCodec< T> -
Resolves the codec for Dart type
T. -
register<
T> (MessageCodec< T> codec) → void -
Registers
codecfor Dart typeT. Idempotent for identical types. -
reset(
) → void - Drops all registrations. Test-only.