isWidgetCreationTracked method
Returns whether Widget creation locations are available.
Widget creation locations are only available for debug mode builds when
the --track-widget-creation flag is passed to flutter_tool. Dart 2.0
is required as injecting creation locations requires a
Dart Kernel Transformer.
Implementation
bool isWidgetCreationTracked() {
_widgetCreationTracked ??= _WidgetForTypeTests() is _HasCreationLocation;
return _widgetCreationTracked;
}