label property

String label

A textual description of the owning RenderObject.

On iOS this is used for the accessibilityLabel property defined in the UIAccessibility Protocol. On Android it is concatenated together with value and hint in the following order: value, label, hint. The concatenated value is then used as the Text description.

The reading direction is given by textDirection.


String get label => _label;
void label= (String label)


set label(String label) {
  assert(label != null);
  _label = label;
  _hasBeenAnnotated = true;