addFile method

  1. @override
Future<void>? addFile(
  1. HttpResponse res,
  2. String path,
  3. int start,
  4. int length,
)
override

Sends length bytes of the file at path from start as the body of res. null when the server can not do it: Dart streams the file.

Implementation

@override
Future<void>? addFile(HttpResponse res, String path, int start, int length) =>
    res is NativeResponse
    ? res.addFile(path, start: start, length: length)
    : null;