SmartApiFile.single constructor

SmartApiFile.single({
  1. required String key,
  2. required String path,
  3. String? fileName,
})

A single file under a custom form-field key, e.g. SmartApiFile.single(key: "image", path: path).

Implementation

factory SmartApiFile.single({required String key, required String path, String? fileName}) =>
    SmartApiFile(key: key, path: path, fileName: fileName);