anchor.diff:    @Input() String nextText = 'Next';
   
     /// visible pages
  -  List<Map> pages = [];
  +  List<Map<String,dynamic>> pages = [];
   
     set totalPages(int v) {
       super.totalPages = v;
  
positive.code:   }
  
    /// Create page object used in template
    makePage(number, text, isActive) {
      return { "number" : number, "text" : text, "active" : isActive};
    }
  
    /// get the pages to be viewed in dependence of the [currentPage] and [totalPage]
    getPages(int currentPage, int totalPages) {
      var pages = [];
      // Default page limits
      int startPage = 1;
      var endPage = totalPages;
      var isMaxSized = maxSize != null && maxSize < totalPages;
      // recompute if maxSize
      if (isMaxSized) {
        if (rotate) {
  
negative.code:     }
      // Add page number links
      for (var number = startPage; number <= endPage; number ++) {
        Map<String,dynamic> page = makePage(number, number.toString(), number == currentPage);
        pages.add(page);
      }
      // Add links to move between page sets
      if (isMaxSized && !rotate) {
        if (startPage > 1) {
          pages.insert(0, makePage(startPage - 1, "...", false));
        }
        if (endPage < totalPages) {
          pages.add(makePage(endPage + 1, "...", false));
        }
      }
      return pages;
    }
  
  //  @HostListener('currentPageChange', const ['\$event'])
    onCurrentPageChange(int currentPage) =>
        pages = getPages(currentPage, totalPages);
  }
  