processFCPTextButtonPressed method
void
processFCPTextButtonPressed(
- String elementId
)
Implementation
void processFCPTextButtonPressed(String elementId) {
for (var t in templateHistory) {
if (t is CPPointOfInterestTemplate) {
for (CPPointOfInterest p in t.poi) {
if (p.primaryButton != null &&
p.primaryButton!.uniqueId == elementId) {
p.primaryButton!.onPress();
return;
}
if (p.secondaryButton != null &&
p.secondaryButton!.uniqueId == elementId) {
p.secondaryButton!.onPress();
return;
}
}
} else {
if (t is CPInformationTemplate) {
for (CPTextButton b in t.actions) {
if (b.uniqueId == elementId) {
b.onPress();
return;
}
}
}
}
}
}