ExtensionRegistry class

A collection of Extension objects, organized by the message type they extend.

Constructors

ExtensionRegistry()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(Extension extension) → void
Stores an extension in the registry.
addAll(Iterable<Extension> extensions) → void
Stores all extensions in the registry.
getExtension(String messageName, int tagNumber) Extension
Retrieves an extension from the registry that adds tag number tagNumber to the messageName message type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
reparseMessage<T extends GeneratedMessage>(T message) → T
Returns a shallow copy of message, with all extensions in this parsed from the unknown fields of message and of every nested submessage. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

EMPTY → const ExtensionRegistry
_EmptyExtensionRegistry()