copyWith method

MentionInfo copyWith({
  1. String? userID,
  2. String? displayName,
  3. int? startIndex,
})

Implementation

MentionInfo copyWith({
  String? userID,
  String? displayName,
  int? startIndex,
}) {
  return MentionInfo(
    userID: userID ?? this.userID,
    displayName: displayName ?? this.displayName,
    startIndex: startIndex ?? this.startIndex,
  );
}