goToClickFunction method

void goToClickFunction()

Implementation

void goToClickFunction(){
  //check zero
  if( pageGoTo <= 0 ) {
    msgError =  "Missed Field Go To Page".arf( "ادخل رقم الصفحة") ;
  setState(() {

  });
    return;
  }

  //more than maxPage
  Log.i( "goToClickFunction() - maxPage: " + widget.maxPage.toString()  + " /pageGoTo: $pageGoTo" );
  if( pageGoTo > widget.maxPage!  ) {
    msgError =  "Page more than Maximum Page is: " + widget.maxPage.toString()   ;
    setState(() {

    });
    return;
  }

  //more than totalPages
  if( pageGoTo >  widget.itemTotal  ) {
    msgError =   "Page more than totalBar Page is: " + widget.itemTotal.toString()  ;
    setState(() {

    });
    return;
  }

  //update
 // setPaginateByRecordTotal( recordTotal, widget.limitPerPage, pageGoTo);

  //call back
  widget.paginateNumberChange( pageGoTo);
}