PageRequest constructor Null safety

PageRequest(
  1. {List<int>? key,
  2. Int64? offset,
  3. Int64? limit,
  4. bool? countTotal}
)

Implementation

factory PageRequest({
  $core.List<$core.int>? key,
  $fixnum.Int64? offset,
  $fixnum.Int64? limit,
  $core.bool? countTotal,
}) {
  final _result = create();
  if (key != null) {
    _result.key = key;
  }
  if (offset != null) {
    _result.offset = offset;
  }
  if (limit != null) {
    _result.limit = limit;
  }
  if (countTotal != null) {
    _result.countTotal = countTotal;
  }
  return _result;
}