getStream method

StreamBuild getStream(
  1. String key
)

key = 刷新局部标记

Implementation

StreamBuild getStream(String key) {
  if (!dataBus.containsKey(key)) {
    StreamBuild streamBuild = StreamBuild.instance(key);
    dataBus[key] = streamBuild;
  }
  if (dataBus[key] == null) {
    return StreamBuild.instance(key);
  } else {
    return dataBus[key]!;
  }
}