The bool() function converts the given value to a boolean value ( True or False ) . If the given value is False, the bool function returns False else it returns True.
Read moreWhat is bool in flutter?
bool is the Dart type that represents a boolean value . It can be true or false .
Read more