addTemplateToHistory method
void
addTemplateToHistory(
- dynamic template
Implementation
void addTemplateToHistory(dynamic template) {
if (template.runtimeType == CPTabBarTemplate ||
template.runtimeType == CPGridTemplate ||
template.runtimeType == CPInformationTemplate ||
template.runtimeType == CPPointOfInterestTemplate ||
template.runtimeType == CPListTemplate) {
templateHistory.add(template);
} else {
throw TypeError();
}
}