canUnpackInto method

bool canUnpackInto(
  1. GeneratedMessage instance
)
inherited

Returns true if the encoded message matches the type of instance.

Can be used with a default instance: any.canUnpackInto(Message.getDefault())

Implementation

bool canUnpackInto(GeneratedMessage instance) {
  return canUnpackIntoHelper(instance, typeUrl);
}