FindSyncsResponse constructor

FindSyncsResponse({
  1. int? total,
  2. List<FindSyncResponse>? syncs,
  3. ResponseError? error,
})

Builds a FindSyncsResponse

total: The total number of syncs returned syncs: The list of syncs error: An error if there was error while fetching the syncs

Implementation

FindSyncsResponse({int? total, this.syncs, super.error})
    : total = total ?? syncs?.length ?? 0;