isElementOfTypeV2 function

bool isElementOfTypeV2(
  1. dynamic element,
  2. ReactComponentFactoryProxy componentFactory
)

Returns true if element is a ReactElement that is of the ReactComponentFactoryProxy.type of the provided componentFactory.

Implementation

bool isElementOfTypeV2(dynamic element, ReactComponentFactoryProxy componentFactory) {
  return _isElementOfType(element, getComponentTypeV2(componentFactory));
}