copyWith method

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

Implementation

SecretChat copyWith({
  int? id,
  int? userId,
  SecretChatState? state,
  bool? isOutbound,
  String? keyHash,
  int? layer,
}) => 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,
);