Last active
July 17, 2021 08:53
-
-
Save BrianMwas/7f54fbeddb72e6b532b67fdf6437022b to your computer and use it in GitHub Desktop.
This file contains 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
Future<Recipies> getRecipies(String? timeOfDay) { | |
if(timeOfDay == "noon") { | |
return foodApi.getAllNoonFood(); | |
} else { | |
return foodApi.getAllMorningFood(); | |
} | |
// This code will never execute | |
return foodApi.getAllEveningFood(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment