forked from loafle/openapi-generator-original
* Make header params with dynamic types Otherwise this will generate code which is not compile-able. Like this: ```dart Future<Response<List<StockItemProjectionDirect>>>getAllStockItems(Store storeId,{ int xXChunkNumber,int xXChunkSize,StockItemRequestFilterDto stockItemRequestFilterDto,CancelToken cancelToken, Map<String, String> headers, ProgressCallback onSendProgress, ProgressCallback onReceiveProgress,}) async { String _path = "/api/store/{storeId}/stock".replaceAll("{" r'storeId' "}", storeId.toString()); Map<String, dynamic> queryParams = {}; Map<String, String> headerParams = Map.from(headers ?? {}); dynamic bodyData; headerParams[r'XX-Chunk-Number'] = xXChunkNumber; headerParams[r'XX-Chunk-Size'] = xXChunkSize; ``` See how the func recieves int argument which then assignes into a string... last 2 lines * FIX: Dynamic header and sync with upstream * DART-DIO new samples Co-authored-by: William Cheng <wing328hk@gmail.com>