flutter getit reset

2022-05-07

以下示例是关于Whatever中包含flutter getit reset用法的示例代码,想了解flutter getit reset的具体用法?flutter getit reset怎么用?flutter getit reset使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:flutter getit reset源码类型:Whatever
/// Clears the instance of a lazy singleton,
  /// being able to call the factory function on the next call
  /// of [get] on that type again.
  /// you select the lazy Singleton you want to reset by either providing
  /// an [instance], its registered type [T] or its registration name.
  /// if you need to dispose some resources before the reset, you can
  /// provide a [disposingFunction]. This function overrides the disposing
  /// you might have provided when registering.
void resetLazySingleton<T>({Object instance,
                            String instanceName,
                            void Function(T) disposingFunction})

本文地址:https://www.itbaoku.cn/snippets/785341.html