# Control Flow

1 min read, 91 words controlflowdart

# conditional

  1. only if
  2. if..else
  3. ternary operator

# iteration

type syntax
with index traditional for
without index for..in
list item.forEach()
Map item.entries()

# Switch snippet

switch vs Map object classes

  • works very well with enums

# Exception Handling

  • catch nown Exceptions with on inside try block

# Exit on assertion failures

  • to stop the chain of horrendeous things

Subscribe to our Newsletter

If you like my work and think it was helpful kindly support my work


Buy Me A Coffee