displayLabel property
Short label for the plain-text renderer; each variant picks the most useful field (button label, text content, etc.).
Implementation
@override
String get displayLabel {
final parts = <String>[];
if (hint != null && hint!.isNotEmpty) parts.add('($hint)');
if (currentValue != null && currentValue!.isNotEmpty) {
parts.add('"$currentValue"');
} else if (obscured) {
parts.add('[hidden, ${valueLength ?? 0} chars]');
}
if (error != null && error!.isNotEmpty) parts.add('⚠ $error');
return parts.isEmpty ? 'input' : parts.join(' ');
}