copyWith method

SetUserSupportInfo copyWith({
  1. int? userId,
  2. FormattedText? message,
})

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

Implementation

SetUserSupportInfo copyWith({
  int? userId,
  FormattedText? message,
}) =>
    SetUserSupportInfo(
      userId: userId ?? this.userId,
      message: message ?? this.message,
    );