createFloating method

Floating createFloating(
  1. Object key,
  2. Floating floating
)

创建一个可全局管理的 Floating

Implementation

Floating createFloating(Object key, Floating floating) {
  bool contains = _floatingCache.containsKey(key);
  if (!contains) {
    _floatingCache[key] = floating..setLogKey(key.toString());
  }
  return _floatingCache[key]!;
}