retireFeedback function

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

Implementation

String retireFeedback(String value, {bool hasError = false}) {
  if (hasError) {
    return 'Failed to delete $value';
  }
  return 'Successfully removed $value from your account';
}