isDomElement function
Returns whether instance
is a ReactElement for a DOM node.
Implementation
bool isDomElement(dynamic instance) {
return isValidElement(instance) &&
(instance as ReactElement).type is String; // ignore: avoid_as
}
Returns whether instance
is a ReactElement for a DOM node.
bool isDomElement(dynamic instance) {
return isValidElement(instance) &&
(instance as ReactElement).type is String; // ignore: avoid_as
}