FormData class

multipart/form-data and application/x-www-form-urlencoded content data

Constructors

FormData(Map<String, List<String>> formFields, Map<String, List<FilePart>> formFiles)
init new content

Properties

formFields Map<String, List<String>>
form fields as a list of string value for multiple value field
final
formFiles Map<String, List<FilePart>>
form fields as a list of FilePart value for multiple value field
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

file(String i) FilePart?
get single value from formFiles with the field name i
getBool(String name) bool?
get value of field as bool
getDouble(String name) double?
get value of field as doubel
getInt(String name) int?
get value of field as int
getMap(String name) Map?
get value of field as Map
getNum(String name) num?
get value of field as num
getString(String name) String?
get value of field as int
listBool(String i, [bool required = false]) List<bool?>?
get value as bool
listDouble(String i, [bool required = false]) List<double?>?
get value as double
listInt(String i, [bool required = false]) List<int?>?
get value as int
listNum(String i, [bool required = false]) List<num?>?
get value as num
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String i) List?
get data from formFields or formFiles variables with the field name i