setLabel method
- String value
Set a description label that is drawn into the test output.
Implementation
@protected
void setLabel(String value) {
if (value.isEmpty) {
_label = null;
return;
}
// TODO(ianh): Figure out if the test name is actually RTL.
_label ??= TextPainter(textAlign: TextAlign.left, textDirection: TextDirection.ltr);
_label!.text = TextSpan(text: value, style: _labelStyle);
_label!.layout();
_markViewsNeedPaint();
}