$r top-level property

dynamic $r

Returns a reference to the currently selected component in the React Dev Tools.

Returns the associated ReactComponent.dartComponent for Dart components or the ReactComponent for JS components.

To use in Dartium, over_react must be imported in the current context.

Implementation

dynamic get $r {
  var component = _get$R();

  return isDartComponent(component)
      // ignore: avoid_as
      ? (component as ReactComponent).dartComponent
      : component;
}