displayName property

  1. @override
String displayName
inherited

Allows the ReactJS displayName property to be set for debugging purposes.

In DDC, this will be the class name, but in dart2js it will be null unless overridden, since using runtimeType can lead to larger dart2js output.

This will result in the dart2js name being ReactDartComponent2 (the name of the proxying JS component defined in _dart_helpers.js).

Implementation

@override
String get displayName => '_Dummy2';