copyWith method

FoundMessages copyWith({
  1. int? totalCount,
  2. List<Message>? messages,
  3. String? nextOffset,
  4. dynamic extra,
  5. int? clientId,
})

Implementation

FoundMessages copyWith({
  int? totalCount,
  List<Message>? messages,
  String? nextOffset,
  dynamic extra,
  int? clientId,
}) =>
    FoundMessages(
      totalCount: totalCount ?? this.totalCount,
      messages: messages ?? this.messages,
      nextOffset: nextOffset ?? this.nextOffset,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );