addMap method

void addMap(
  1. Map<String, T> dataMap,
  2. int? ts
)

Implementation

void addMap(Map<String, T> dataMap, int? ts) {
  if (dataMap.isEmpty) return;
  final time = ts ?? DateTime.now().millisecondsSinceEpoch;
  dataMap.forEach((k, v) => addWithKey(k, v, time));
}