label property
final
The label string that should be displayed.
The label string provides the label text, as well as the possible characters which could be used as accelerators in the menu system.
To indicate which letters in the label are to be used as accelerators, add an "&" character before the character in the string. If more than one character has an "&" in front of it, then the characters appearing earlier in the string are preferred. To represent a literal "&", insert "&&" into the string. All other ampersands will be removed from the string before calling MenuAcceleratorLabel.builder. Bare ampersands at the end of the string or before whitespace are stripped and ignored.
See also:
- displayLabel, which returns the label with all of the ampersands stripped out of it, and double ampersands converted to ampersands.
- stripAcceleratorMarkers, which returns the supplied string with all of the ampersands stripped out of it, and double ampersands converted to ampersands, and optionally calls a callback with the index of the accelerator character found.
Implementation
final String label;