copyWith method

ChatPosition copyWith({
  1. ChatList? list,
  2. int? order,
  3. bool? isPinned,
  4. ChatSource? source,
})

Implementation

ChatPosition copyWith({
  ChatList? list,
  int? order,
  bool? isPinned,
  ChatSource? source,
}) => ChatPosition(
  list: list ?? this.list,
  order: order ?? this.order,
  isPinned: isPinned ?? this.isPinned,
  source: source ?? this.source,
);