validBool method

bool validBool(
  1. String key
)

Returns true if the key has a value which is a bool. Empty or null value returns false.

Implementation

bool validBool(String key) {
  final dynamic value = valueMap[key];
  return value != null && value is bool;
}