addTemplateToHistory method

void addTemplateToHistory(
  1. 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();
  }
}