byInt method

int? byInt(
  1. String key, {
  2. int? defaultValue,
})

Implementation

int? byInt(String key, {int? defaultValue}) {
  if (this[key] == null) return defaultValue;
  return double.tryParse(byString(key)!)?.toInt() ?? defaultValue;
}