extra property

Map<String, dynamic> extra
final

额外的适配器特定配置

可用于传递各适配器特有的参数。适配器会尝试解析自己认识的 key, 未知的 key 将被忽略。

示例(DioAdapter 专用):

extra: {
  'requestEncoder': myEncoder,
  'responseDecoder': myDecoder,
  'listFormat': ListFormat.multiCompatible,
}

Implementation

final Map<String, dynamic> extra;