query method

MutUri query(
  1. String key,
  2. dynamic value
)

Add query parameters

Implementation

MutUri query(String key, value) {
  if (value is String || value is Iterable<String>) {
    getQuery[key] = value;
  } else if (value is Iterable) {
    getQuery[key] = value.map((v) => v?.toString() ?? '');
  } else if (value != null) {
    getQuery[key] = value?.toString();
  }
  return this;
}