in web/samples_index/web/main.dart [90:112]
void setSelectedChips() {
var type = queryParams.containsKey(typeKey) ? queryParams[typeKey] : '';
if (type!.isNotEmpty) {
if (type == 'sample') {
chipSet.chips[1].selected = true;
}
if (type == 'cookbook') {
chipSet.chips[2].selected = true;
}
}
// Apply the platform from the hash in the URL
var platform =
queryParams.containsKey(platformKey) ? queryParams[platformKey] : '';
if (platform!.isNotEmpty) {
if (platform == 'web') {
chipSet.chips[3].selected = true;
}
}
if (platform.isEmpty && type.isEmpty) {
chipSet.chips[0].selected = true;
}
}