BuildContextLifecycleRememberExt extension
- on
Methods
-
remember<
T extends Object> ({T factory()?, T factory2(Lifecycle)?, FutureOr< void> onDispose(T)?, Object? key}) → T -
Available on BuildContext, provided by the BuildContextLifecycleRememberExt extension
以当前context、类型T
和key
为索引 记住该对象,并且以后将再次返回该对象 -
rememberAnimationController(
{double? value, Duration? duration, Duration? reverseDuration, String? debugLabel, double lowerBound = 0.0, double upperBound = 1.0, AnimationBehavior animationBehavior = AnimationBehavior.normal, FutureOr< void> onDispose(AnimationController)?, Object? key}) → AnimationController -
Available on BuildContext, provided by the BuildContextLifecycleRememberExt extension
动画控制器 -
rememberAnimationControllerUnbounded(
{double value = 0.0, Duration? duration, Duration? reverseDuration, String? debugLabel, AnimationBehavior animationBehavior = AnimationBehavior.normal, FutureOr< void> onDispose(AnimationController)?, Object? key}) → AnimationController -
Available on BuildContext, provided by the BuildContextLifecycleRememberExt extension
动画控制器 -
rememberScrollController(
{double initialScrollOffset = 0.0, bool keepScrollOffset = true, String? debugLabel, FutureOr< void> onDispose(ScrollController)?, Object? key}) → ScrollController -
Available on BuildContext, provided by the BuildContextLifecycleRememberExt extension
滚动控制器 -
rememberTabController(
{int initialIndex = 0, Duration? animationDuration, required int length, FutureOr< void> onDispose(TabController)?, Object? key}) → TabController -
Available on BuildContext, provided by the BuildContextLifecycleRememberExt extension
获取可用的TabController -
rememberValueNotifier<
T> ({T? value, T factory()?, T factory2(Lifecycle)?, FutureOr< void> onDispose(ValueNotifier<T> )?, bool listen = false, Object? key}) → ValueNotifier<T> -
Available on BuildContext, provided by the BuildContextLifecycleRememberExt extension
快速生成一个可用的类型 ValueNotifier