FeedbackConfig constructor
const
FeedbackConfig({
- String? singularForm,
- String? pluralForm,
- String createSuccessTitle = 'Create success',
- String createSuccessSingularMessage = '${_Forms._singularForm} has been created.',
- String createSuccessPluralMessage = '${_Forms._pluralForm} have been created.',
- String 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.',
- String searchSuccessTitle = 'Search success',
- String searchSuccessSingularMessage = '${_Forms._singularForm} was found.',
- String searchSuccessPluralMessage = '${_Forms._pluralForm} were found.',
- String 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.',
- String updateSuccessTitle = 'Update success',
- String updateSuccessSingularMessage = '${_Forms._singularForm} has been updated.',
- String updateSuccessPluralMessage = '${_Forms._pluralForm} have been updated.',
- String 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.',
- String deleteSuccessTitle = 'Delete success',
- String deleteSuccessSingularMessage = '${_Forms._singularForm} has been deleted.',
- String deleteSuccessPluralMessage = '${_Forms._pluralForm} have been deleted.',
- String 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.',
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;