copyWith method

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

Implementation

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