Skip to content

Instantly share code, notes, and snippets.

@BrianMwas
Last active July 17, 2021 08:52
Show Gist options
  • Save BrianMwas/6a45371223edb9dd5f26b21aa330bd64 to your computer and use it in GitHub Desktop.
Save BrianMwas/6a45371223edb9dd5f26b21aa330bd64 to your computer and use it in GitHub Desktop.
// Bad practive
if(recipe.forLunch());
getIngredients();
// Once it is formatted by dart formatter
if(recipe.forLunch()) ;
getIngredients();
//Good practice
if(recipe.forLunch())
getIngredients();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment