Created
October 31, 2022 13:13
-
-
Save tayormi/5c24c309510289039edf2c391a6be007 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void main() { | |
| onSelectNotification('agencyNotification', 'HereThere'); | |
| } | |
| void onSelectNotification(String type, String data) { | |
| switch (type) { | |
| case 'agencyNotification': | |
| case 'newAdsInSearch': | |
| if(data == 'HereThere') { | |
| print("Handle Search"); | |
| } else { | |
| print("Go to Real Estate"); | |
| } | |
| break; | |
| case 'agencyInvitationAcceptedNotification': | |
| case 'createRecommendationNotification': | |
| case 'requestRecommendationNotification': | |
| default: | |
| print("Go to Notifications"); | |
| break; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment