createInterActiveExtraMap method

Map createInterActiveExtraMap({
  1. double height = 0,
  2. double width = 0,
  3. Map? customMap,
  4. String? sceneId,
  5. Map? localParams,
  6. bool openAutoLoadCallback = false,
  7. double maxWaitTime = 0,
})

Implementation

Map createInterActiveExtraMap({
  double height = 0, //高度
  double width = 0, //宽度
  Map? customMap, //流量分组Map
  String? sceneId, //场景ID
  Map? localParams, //客户设置特殊参数数据
  bool openAutoLoadCallback = false,
  double maxWaitTime = 0,
}) {
  Map extraMap = {};
  extraMap['height'] = height;
  extraMap['width'] = width;
  if (localParams != null) {
    extraMap['localParams'] = localParams;
  }
  if (customMap != null) {
    extraMap['customMap'] = customMap;
  }
  if (sceneId != null) {
    extraMap['sceneId'] = sceneId;
  }
  extraMap['openAutoLoadCallback'] = openAutoLoadCallback;
  extraMap['maxWaitTime'] = maxWaitTime;
  return extraMap;
}