copyWith method

  1. @override
TextEntityTypeMentionName copyWith({
  1. int? userId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
TextEntityTypeMentionName copyWith({int? userId}) =>
    TextEntityTypeMentionName(userId: userId ?? this.userId);