NotificationFlowStrings constructor
const
NotificationFlowStrings({
- String valuePropositionTitle = 'Enable Notifications',
- String valuePropositionMessage = 'Stay updated with important alerts and messages.',
- String valuePropositionAcceptButton = 'Enable',
- String valuePropositionDeclineButton = 'Not Now',
- String goToSettingsTitle = 'Notifications Disabled',
- String goToSettingsMessage = 'To receive notifications, please enable them in your device settings.',
- String goToSettingsButton = 'Open Settings',
- String goToSettingsCancelButton = 'Cancel',
- String askAgainTitle = 'Enable Notifications?',
- String askAgainMessage = 'You previously declined notifications. Would you like to enable them now?',
- String askAgainAcceptButton = 'Yes, Enable',
- String askAgainDeclineButton = 'No Thanks',
- String webSettingsInstructionsTitle = 'Enable Notifications',
- String webSettingsInstructionsMessage = 'To enable notifications:\n\n' "1. Click the lock/info icon in your browser's address bar\n" '2. Find "Notifications" in the permissions list\n' '3. Change it from "Block" to "Allow"\n' '4. Refresh this page',
- String webSettingsInstructionsButton = 'Got It',
Implementation
const NotificationFlowStrings({
this.valuePropositionTitle = 'Enable Notifications',
this.valuePropositionMessage = 'Stay updated with important alerts and messages.',
this.valuePropositionAcceptButton = 'Enable',
this.valuePropositionDeclineButton = 'Not Now',
this.goToSettingsTitle = 'Notifications Disabled',
this.goToSettingsMessage =
'To receive notifications, please enable them in your device settings.',
this.goToSettingsButton = 'Open Settings',
this.goToSettingsCancelButton = 'Cancel',
this.askAgainTitle = 'Enable Notifications?',
this.askAgainMessage =
'You previously declined notifications. Would you like to enable them now?',
this.askAgainAcceptButton = 'Yes, Enable',
this.askAgainDeclineButton = 'No Thanks',
this.webSettingsInstructionsTitle = 'Enable Notifications',
this.webSettingsInstructionsMessage = 'To enable notifications:\n\n'
"1. Click the lock/info icon in your browser's address bar\n"
'2. Find "Notifications" in the permissions list\n'
'3. Change it from "Block" to "Allow"\n'
'4. Refresh this page',
this.webSettingsInstructionsButton = 'Got It',
});