validate library Null safety

Functions

checkValid(GeneratedMessage message) → void
Validates the given message according to the constraints defined in Protobuf and throws an InvalidMessageError if the message is invalid.
isDefault(GeneratedMessage message) → bool
Checks if the given message is in the default state.
validate(GeneratedMessage message) → Optional<ValidationError>
Validates the given message according to the constraints defined in Protobuf.

Exceptions / Errors

InvalidMessageError
An error which occurs when validating an invalid message.