copyWith method

ChatMessageSender copyWith({
  1. MessageSender? sender,
  2. bool? needsPremium,
})

Implementation

ChatMessageSender copyWith({
  MessageSender? sender,
  bool? needsPremium,
}) =>
    ChatMessageSender(
      sender: sender ?? this.sender,
      needsPremium: needsPremium ?? this.needsPremium,
    );