copyWith method

SecretChat copyWith({
  1. int? id,
  2. int? userId,
  3. SecretChatState? state,
  4. bool? isOutbound,
  5. String? keyHash,
  6. int? layer,
  7. dynamic extra,
  8. int? clientId,
})

Implementation

SecretChat copyWith({
  int? id,
  int? userId,
  SecretChatState? state,
  bool? isOutbound,
  String? keyHash,
  int? layer,
  dynamic extra,
  int? clientId,
}) =>
    SecretChat(
      id: id ?? this.id,
      userId: userId ?? this.userId,
      state: state ?? this.state,
      isOutbound: isOutbound ?? this.isOutbound,
      keyHash: keyHash ?? this.keyHash,
      layer: layer ?? this.layer,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );