LeaderboardRecordList constructor

LeaderboardRecordList({
  1. Iterable<LeaderboardRecord>? records,
  2. Iterable<LeaderboardRecord>? ownerRecords,
  3. String? nextCursor,
  4. String? prevCursor,
})

Implementation

factory LeaderboardRecordList({
  $core.Iterable<LeaderboardRecord>? records,
  $core.Iterable<LeaderboardRecord>? ownerRecords,
  $core.String? nextCursor,
  $core.String? prevCursor,
}) {
  final _result = create();
  if (records != null) {
    _result.records.addAll(records);
  }
  if (ownerRecords != null) {
    _result.ownerRecords.addAll(ownerRecords);
  }
  if (nextCursor != null) {
    _result.nextCursor = nextCursor;
  }
  if (prevCursor != null) {
    _result.prevCursor = prevCursor;
  }
  return _result;
}