FeedbackConfig class
Config class to provide usable error message to your FeedbackResponse
's.
Provide this config in different languages to easily show feedback to your user when certain actions have succeeded or failed.
Constructors
- 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.'})
-
const
Properties
- createFailedPluralMessage → String
-
Holds the plural message that's used for displaying 'create' failed messages.
no setter
- createFailedSingularMessage → String
-
Holds the singular message that's used for displaying 'create' failed messages.
no setter
- createFailedTitle → String
-
Holds the title that's used for displaying 'create' failed messages.
final
- createSuccessPluralMessage → String
-
Holds the plural message that's used for displaying 'create' success messages.
no setter
- createSuccessSingularMessage → String
-
Holds the singular message that's used for displaying 'create' success messages.
no setter
- createSuccessTitle → String
-
Holds the title that's used for displaying 'create' success messages.
final
- deleteFailedPluralMessage → String
-
Holds the plural message that's used for displaying 'delete' failed messages.
no setter
- deleteFailedSingularMessage → String
-
Holds the singular message that's used for displaying 'delete' failed messages.
no setter
- deleteFailedTitle → String
-
Holds the title that's used for displaying 'delete' failed messages.
final
- deleteSuccessPluralMessage → String
-
Holds the plural message that's used for displaying 'delete' success messages.
no setter
- deleteSuccessSingularMessage → String
-
Holds the singular message that's used for displaying 'delete' success messages.
no setter
- deleteSuccessTitle → String
-
Holds the title that's used for displaying 'delete' success messages.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- responseConfig → ResponseGenerator
-
Used to generate and fetch a response config that provides
FeedbackResponse
's based on this FeedbackConfig.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchFailedPluralMessage → String
-
Holds the plural message that's used for displaying 'search' failed messages.
no setter
- searchFailedSingularMessage → String
-
Holds the singular message that's used for displaying 'search' failed messages.
no setter
- searchFailedTitle → String
-
Holds the title that's used for displaying 'search' failed messages.
final
- searchSuccessPluralMessage → String
-
Holds the plural message that's used for displaying 'search' success messages.
no setter
- searchSuccessSingularMessage → String
-
Holds the singular message that's used for displaying 'search' success messages.
no setter
- searchSuccessTitle → String
-
Holds the title that's used for displaying 'search' success messages.
final
- updateFailedPluralMessage → String
-
Holds the plural message that's used for displaying 'update' failed messages.
no setter
- updateFailedSingularMessage → String
-
Holds the singular message that's used for displaying 'update' failed messages.
no setter
- updateFailedTitle → String
-
Holds the title that's used for displaying 'update' failed messages.
final
- updateSuccessPluralMessage → String
-
Holds the plural message that's used for displaying 'update' success messages.
no setter
- updateSuccessSingularMessage → String
-
Holds the singular message that's used for displaying 'update' success messages.
no setter
- updateSuccessTitle → String
-
Holds the title that's used for displaying 'update' success messages.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited