copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SetUserNote copyWith({int? userId, FormattedText? note}) =>
SetUserNote(userId: userId ?? this.userId, note: note ?? this.note);