isDartComponent function

bool isDartComponent(
  1. Object? instance
)

Returns whether an instance is a native Dart component (a react-dart ReactElement or ReactComponent).

Implementation

bool isDartComponent(Object?/* ReactElement|ReactComponent|Element */ instance) {
  if (instance == null) {
    throw ArgumentError.notNull('instance');
  }
  return _getDartComponentVersionFromInstance(instance) != null;
}