Skip to content

Instantly share code, notes, and snippets.

@BrianMwas
Last active July 17, 2021 08:53
Show Gist options
  • Save BrianMwas/7f54fbeddb72e6b532b67fdf6437022b to your computer and use it in GitHub Desktop.
Save BrianMwas/7f54fbeddb72e6b532b67fdf6437022b to your computer and use it in GitHub Desktop.
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