setPrimaryFeedback function

String setPrimaryFeedback(
  1. String? value, {
  2. bool hasError = false,
})

Implementation

String setPrimaryFeedback(String? value, {bool hasError = false}) {
  if (hasError) {
    return 'Failed to set $value as primary';
  }
  return 'Successfully set $value as primary';
}