Flutter – How to properly add request fields to a Dart MultipartRequest
I have a flutter app in which I normally use http request post from a model to a go API like this. if (dateRequired != null) { data['date_required'] = dateRequired?.formatDbDate(); } else { data['date_required'] = null; } However, I want…