PaginadoModel constructor

const PaginadoModel({
  1. required String coleccion,
  2. int totalItems = 0,
  3. int subTotal = 0,
  4. int skip = 0,
  5. bool mostrarPaginacion = false,
  6. int limit = 25,
  7. Map<String, dynamic> params = const <String, dynamic>{},
})

Implementation

const PaginadoModel(
    {required this.coleccion,
    this.totalItems = 0,
    this.subTotal = 0,
    this.skip = 0,
    bool mostrarPaginacion = false,
    this.limit = 25,
    this.params = const <String, dynamic>{}})
    : mostrarPaginacion = totalItems > limit;