urlEncodedFormField method

MethodWithBody urlEncodedFormField(
  1. String name,
  2. dynamic value
)

Implementation

MethodWithBody urlEncodedFormField(String name, value) {
  if (_body is! Map<String, String>) {
    _body = <String, String>{};
  }
  if (value != null) {
    _body[name] = value?.toString();
  }
  return this;
}