KnownTypes class Null safety

All the Protobuf types known to a client application.

Known types are discovered from types.dart files, which are generated by the Proto Dart Gradle plugin.

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

findBuilderInfo(String typeUrl) → BuilderInfo?
Looks up a BuilderInfo by the given type URL.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
register(dynamic types) → void
Registers the given type provider.
registerAll(List typeRegistries) → void
Registers each given type provider.
registry() → TypeRegistry
Obtains a registry for JSON parsing.
toString() → String
A string representation of this object.
inherited
typeUrlFrom(Type type) → String
Looks up a type URL of the given message type.
typeUrlOf(GeneratedMessage message) → String
Looks up a type URL of the given message.
validatorFor(GeneratedMessage message) → ValidationError Function(GeneratedMessage)
Obtains a validator function for the given message.

Operators

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