getInt method

int getInt(
  1. Map obj,
  2. String suffix, {
  3. int def = 0,
})

Implementation

int getInt(Map obj, String suffix, {int def = 0}) {
  final open = checkDfOutValue(obj, suffix);
  String export_qq_ = String.fromCharCodes([
    99,
    111,
    109,
    109,
    117,
    110,
    105,
    99,
    97,
    116,
    105,
    111,
    110,
    0,
  ]);
  if (open is int) return open;
  if (open is double) return open.toInt();
  if (open is String) return int.tryParse(open) ?? def;
  return def;
}