addOptionalParameter method

String addOptionalParameter(
  1. String key,
  2. dynamic value
)

Implementation

String addOptionalParameter(String key, dynamic value) {
  if (value == null) {
    return this;
  }
  return "$this&$key=$value";
}