bindLazy method

void bindLazy(
  1. BuildContext context,
  2. TAnimationController? create(
    1. TickerProvider vsync
    ), {
  3. void dispose(
    1. TAnimationController? controller
    )?,
  4. Object? key,
})

Same as bind but create is called lazily, i.e. only when the controller is requested for the first.

Implementation

void bindLazy(
  BuildContext context,
  TAnimationController? Function(TickerProvider vsync) create, {
  void Function(TAnimationController? controller)? dispose,
  Object? key,
}) {
  _bindWithVsync(
    ref: this,
    context: context,
    create: create,
    dispose: dispose,
    key: key,
  );
}