FeedbackConfig constructor

const FeedbackConfig({
  1. String? singularForm,
  2. String? pluralForm,
  3. String createSuccessTitle = 'Create success',
  4. String createSuccessSingularMessage = '${_Forms._singularForm} has been created.',
  5. String createSuccessPluralMessage = '${_Forms._pluralForm} have been created.',
  6. String createFailedTitle = 'Create failed',
  7. String createFailedSingularMessage = 'Unable to create ${_Forms._singularForm}, please try again later.',
  8. String createFailedPluralMessage = 'Unable to create ${_Forms._pluralForm}, please try again later.',
  9. String searchSuccessTitle = 'Search success',
  10. String searchSuccessSingularMessage = '${_Forms._singularForm} was found.',
  11. String searchSuccessPluralMessage = '${_Forms._pluralForm} were found.',
  12. String searchFailedTitle = 'Search failed',
  13. String searchFailedSingularMessage = 'Unable to find ${_Forms._singularForm}, please try again later.',
  14. String searchFailedPluralMessage = 'Unable to find ${_Forms._pluralForm}, please try again later.',
  15. String updateSuccessTitle = 'Update success',
  16. String updateSuccessSingularMessage = '${_Forms._singularForm} has been updated.',
  17. String updateSuccessPluralMessage = '${_Forms._pluralForm} have been updated.',
  18. String updateFailedTitle = 'Update failed',
  19. String updateFailedSingularMessage = 'Unable to update ${_Forms._singularForm}, please try again later.',
  20. String updateFailedPluralMessage = 'Unable to update ${_Forms._pluralForm}, please try again later.',
  21. String deleteSuccessTitle = 'Delete success',
  22. String deleteSuccessSingularMessage = '${_Forms._singularForm} has been deleted.',
  23. String deleteSuccessPluralMessage = '${_Forms._pluralForm} have been deleted.',
  24. String deleteFailedTitle = 'Delete failed',
  25. String deleteFailedSingularMessage = 'Unable to delete ${_Forms._singularForm}, please try again later.',
  26. String deleteFailedPluralMessage = 'Unable to delete ${_Forms._pluralForm}, please try again later.',
})

Implementation

const FeedbackConfig({
  String? singularForm,
  String? pluralForm,
  this.createSuccessTitle = 'Create success',
  String createSuccessSingularMessage =
      '${_Forms._singularForm} has been created.',
  String createSuccessPluralMessage =
      '${_Forms._pluralForm} have been created.',
  this.createFailedTitle = 'Create failed',
  String createFailedSingularMessage =
      'Unable to create ${_Forms._singularForm}, please try again later.',
  String createFailedPluralMessage =
      'Unable to create ${_Forms._pluralForm}, please try again later.',
  this.searchSuccessTitle = 'Search success',
  String searchSuccessSingularMessage = '${_Forms._singularForm} was found.',
  String searchSuccessPluralMessage = '${_Forms._pluralForm} were found.',
  this.searchFailedTitle = 'Search failed',
  String searchFailedSingularMessage =
      'Unable to find ${_Forms._singularForm}, please try again later.',
  String searchFailedPluralMessage =
      'Unable to find ${_Forms._pluralForm}, please try again later.',
  this.updateSuccessTitle = 'Update success',
  String updateSuccessSingularMessage =
      '${_Forms._singularForm} has been updated.',
  String updateSuccessPluralMessage =
      '${_Forms._pluralForm} have been updated.',
  this.updateFailedTitle = 'Update failed',
  String updateFailedSingularMessage =
      'Unable to update ${_Forms._singularForm}, please try again later.',
  String updateFailedPluralMessage =
      'Unable to update ${_Forms._pluralForm}, please try again later.',
  this.deleteSuccessTitle = 'Delete success',
  String deleteSuccessSingularMessage =
      '${_Forms._singularForm} has been deleted.',
  String deleteSuccessPluralMessage =
      '${_Forms._pluralForm} have been deleted.',
  this.deleteFailedTitle = 'Delete failed',
  String deleteFailedSingularMessage =
      'Unable to delete ${_Forms._singularForm}, please try again later.',
  String deleteFailedPluralMessage =
      'Unable to delete ${_Forms._pluralForm}, please try again later.',
})  : _singularForm = singularForm,
      _pluralForm = pluralForm,
      _createSuccessSingularMessage = createSuccessSingularMessage,
      _createSuccessPluralMessage = createSuccessPluralMessage,
      _createFailedSingularMessage = createFailedSingularMessage,
      _createFailedPluralMessage = createFailedPluralMessage,
      _searchSuccessSingularMessage = searchSuccessSingularMessage,
      _searchSuccessPluralMessage = searchSuccessPluralMessage,
      _searchFailedSingularMessage = searchFailedSingularMessage,
      _searchFailedPluralMessage = searchFailedPluralMessage,
      _updateSuccessSingularMessage = updateSuccessSingularMessage,
      _updateSuccessPluralMessage = updateSuccessPluralMessage,
      _updateFailedSingularMessage = updateFailedSingularMessage,
      _updateFailedPluralMessage = updateFailedPluralMessage,
      _deleteSuccessSingularMessage = deleteSuccessSingularMessage,
      _deleteSuccessPluralMessage = deleteSuccessPluralMessage,
      _deleteFailedSingularMessage = deleteFailedSingularMessage,
      _deleteFailedPluralMessage = deleteFailedPluralMessage;