has method

bool has(
  1. String key
)

Determining If Input Is Present

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

Implementation

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