isType method

bool isType(
  1. String name
)

Returns whether the type represented by this Any is the same as name.

name should be a fully qualified type name, for example, google.protobuf.Duration or google.rpc.ErrorInfo.

Implementation

bool isType(String name) => typeName == name;