adaptForIsolatePrinting method
void
adaptForIsolatePrinting()
Replase body of request if it is FormData with map. When Files objects are passed to Isolates it may cause crashes running those functions. Filse should not be passed to Isolates.
Implementation
void adaptForIsolatePrinting() {
if (body is FormData) {
body = {'FormData': getFormData()};
}
}