copyWith method

SetUserNote copyWith({
  1. int? userId,
  2. FormattedText? note,
})

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);