getSemanticsLabel method
Implementation
String getSemanticsLabel() {
final String activeThumb = theme.sheetSettingStyles?.activeThumbColor?.toHex() ?? 'null';
final String activeTrack = theme.sheetSettingStyles?.activeTrackColor?.toHex() ?? 'null';
final String inactiveThumb = theme.sheetSettingStyles?.inactiveThumbColor?.toHex() ?? 'null';
final String inactiveTrack = theme.sheetSettingStyles?.inactiveTrackColor?.toHex() ?? 'null';
final SemanticProperties semanticProperties = SemanticProperties([
SemanticProperty('activeThumbColor', activeThumb),
SemanticProperty('activeTrackColor', activeTrack),
SemanticProperty('inactiveThumbColor', inactiveThumb),
SemanticProperty('inactiveTrackColor', inactiveTrack),
]);
final String label = jsonEncode(semanticProperties.toJson());
return Courier.shared.isUITestsActive ? label : 'CourierPreferencesSheet';
}