addParameter method

void addParameter({
  1. required String name,
  2. dynamic value,
})

Implementation

void addParameter({required String name, dynamic value}) {
  final trimmedNamed = name.trim();
  if (_name.trim().isEmpty) {
    logging.severe('Parameter names may not contain whitespace');
    throw EventException();
  }

  if (trimmedNamed.isEmpty) {
    logging.severe('Parameter names may not be empty');
    throw EventException();
  }
  _parameters[trimmedNamed] = value ?? parameterNullValue;
}