isByteStreamBodyParam function

bool isByteStreamBodyParam(
  1. ServerParam param
)

Whether param is @Body() Stream<List<int>> (or nested byte stream).

Implementation

bool isByteStreamBodyParam(ServerParam param) {
  return param.annotations.body != null &&
      param.type.isStream &&
      param.type.isBytes;
}