has method

bool has(
  1. String key
)

Check if input is present

if(req.has('email')) {
  /// do something
}

Implementation

bool has(String key) {
  String? val = _allRequest[key];
  if (val == null) {
    return false;
  }
  return val.toString().isNotEmpty ? true : false;
}