bindLazy method
void
bindLazy(
- BuildContext context,
- TAnimationController? create(
- TickerProvider vsync
- void dispose(
- TAnimationController? controller
- 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,
);
}