getLimit method

int getLimit([
  1. int? passedLimit
])

Implementation

int getLimit([int? passedLimit]) {
  if (passedLimit == null) return Constants.PAGINATION['LIMIT'];

// if (passedLimit > Constants.PAGINATION['LIMIT_MAX']) {
// return Constants.PAGINATION['LIMIT_MAX'];
// }

  return passedLimit;
}