parseYesNo function

bool parseYesNo(
  1. String str
)

Implementation

bool parseYesNo(String str) => str == 'yes' ? true : false;