createNativeExtraMap method
构建ExtraMap: isAutoLoad 是否开启自动记载 默认开启, customMap 流量分组等自定义数据 templateWidth 原生模版类型预设宽度 ,templateWidth 原生模版类型预设高度
Implementation
Map createNativeExtraMap({
double templateWidth = 320, //模版类型预设宽度
double templateHeight = 250, //模版类型预设高度
num? loadCount,
Map? customMap,
Map? localParams, //客户设置特殊参数数据
bool openAutoLoadCallback = false,
double maxWaitTime = 0,
}) {
Map extraMap = {};
if (localParams != null) {
extraMap['localParams'] = localParams;
}
extraMap['templateWidth'] = templateWidth;
extraMap['templateHeight'] = templateHeight;
if (loadCount != null) {
extraMap['loadCount'] = loadCount;
}
if (customMap != null) {
extraMap['customMap'] = customMap;
}
extraMap['openAutoLoadCallback'] = openAutoLoadCallback;
extraMap['maxWaitTime'] = maxWaitTime;
return extraMap;
}