label property

String? label
final

Optional semantic label for accessibility.

When provided, names this slot as a single semantic node (with button: true when hasTap is true, or as a passive semantic boundary when hasTap is false), replacing the child's own text semantics.

Implementation

final String? label;