isAPIMethod property
bool
isAPIMethod
Returns true
if this reflected method is an API method (returnsAPIResponse OR receivesAPIRequest).
Implementation
bool get isAPIMethod =>
(declaringType != APIModule && declaringType != Initializable) &&
(returnsAPIResponse || receivesAPIRequest);