toForm method

  1. @override
List<MBMultipartForm>? toForm()
override

Converts the element to an array of MBMultipartForm representing it.

Implementation

@override
List<MBMultipartForm>? toForm() {
  List<MBMultipartForm> form = [];
  for (int i = 0; i < values.length; i++) {
    String value = values[i];
    form.add(MBMultipartForm.name(_parameterNameForIndex(i), value));
  }
  return form;
}