bindLifecycle method

Future<T> bindLifecycle(
  1. LifecycleObserverRegistry registry, {
  2. bool throwWhenCancel = false,
})

将future关联到lifecycle

Implementation

Future<T> bindLifecycle(LifecycleObserverRegistry registry,
    {bool throwWhenCancel = false}) {
  return bindCancellable(registry.makeLiveCancellable(),
      throwWhenCancel: throwWhenCancel);
}