validString method

bool validString(
  1. String key
)

Returns true if the key has a value which is a String which is non-null and not empty

Implementation

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