copyWith method

  1. @override
ChatActionBarJoinRequest copyWith({
  1. String? title,
  2. bool? isChannel,
  3. int? requestDate,
})
override

Copy model with modified properties.

Properties:

  • title: Title of the chat to which the join request was sent
  • is_channel: True, if the join request was sent to a channel chat
  • request_date: Point in time (Unix timestamp) when the join request was sent

Implementation

@override
ChatActionBarJoinRequest copyWith({
  String? title,
  bool? isChannel,
  int? requestDate,
}) =>
    ChatActionBarJoinRequest(
      title: title ?? this.title,
      isChannel: isChannel ?? this.isChannel,
      requestDate: requestDate ?? this.requestDate,
    );