validInt method

bool validInt(
  1. String key
)

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

Implementation

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