toBool method

  1. @useResult
bool toBool()

Converts a case-insensitive string of 'true' to a boolean. Returns false if the string is not 'true'.

Implementation

@useResult
bool toBool() => toLowerCase() == 'true';