tickerProvider<R> static method
StateWithMixinBuilder<TickerProviderStateMixin<StatefulWidget> , R>
tickerProvider<R>({
- Key? key,
- dynamic tag,
- Widget builder(
- BuildContext context,
- ReactiveModel<
R> ? rm
- Widget builderWithChild(
- BuildContext context,
- ReactiveModel<
R> ? rm, - Widget? child
- Widget? child,
- ReactiveModel<
R> observe()?, - void initState(
- BuildContext context,
- ReactiveModel<
R> ? rm, - TickerProviderStateMixin<
StatefulWidget> ? ticker
- void dispose(
- BuildContext context,
- ReactiveModel<
R> ? rm, - TickerProviderStateMixin<
StatefulWidget> ? ticker
- void didChangeDependencies(
- BuildContext context,
- ReactiveModel<
R> ? rm, - TickerProviderStateMixin<
StatefulWidget> ? ticker
- void didUpdateWidget(
- BuildContext context,
- StateWithMixinBuilder<
TickerProviderStateMixin< old,StatefulWidget> , R> - TickerProviderStateMixin<
StatefulWidget> ? ticker
- void afterInitialBuild(
- BuildContext context,
- ReactiveModel<
R> ? rm
- void afterRebuild(
- BuildContext context,
- ReactiveModel<
R> ? rm
StateBuilder mixin with TickerProviderStateMixin
- Required parameters:
builder
: The builder callback to be executed whenever the widget is notified.builderWithChild
: The builder callback to be executed whenever the widget is notified. It must be use withchild
parameter.child
: Widget to be used withbuilderWithChild
. Used for optimization.builder
or and only orbuilderWithChild
withchild
must be defined.
- Optional parameters:
observe
: The model to observer.dispose
: Callback to be called when the widget is removed.didChangeDependencies
: Callback to be called when dependencies changed.didUpdateWidget
: Callback to be called when the widget updatedafterInitialBuild
: Callback to be called after the first build of the widget.afterRebuild
: Callback to be called after each build.
Implementation
static StateWithMixinBuilder<TickerProviderStateMixin, R> tickerProvider<R>({
Key? key,
dynamic tag,
Widget Function(BuildContext context, ReactiveModel<R>? rm)? builder,
Widget Function(BuildContext context, ReactiveModel<R>? rm, Widget? child)?
builderWithChild,
Widget? child,
ReactiveModel<R> Function()? observe,
void Function(BuildContext context, ReactiveModel<R>? rm,
TickerProviderStateMixin? ticker)?
initState,
void Function(BuildContext context, ReactiveModel<R>? rm,
TickerProviderStateMixin? ticker)?
dispose,
void Function(BuildContext context, ReactiveModel<R>? rm,
TickerProviderStateMixin? ticker)?
didChangeDependencies,
void Function(
BuildContext context,
StateWithMixinBuilder<TickerProviderStateMixin, R> old,
TickerProviderStateMixin? ticker)?
didUpdateWidget,
void Function(BuildContext context, ReactiveModel<R>? rm)?
afterInitialBuild,
void Function(BuildContext context, ReactiveModel<R>? rm)? afterRebuild,
}) {
return StateWithMixinBuilder<TickerProviderStateMixin, R>(
mixinWith: MixinWith.tickerProviderStateMixin,
key: key,
observe: observe,
builder: builder,
builderWithChild: builderWithChild,
child: child,
initState: initState,
dispose: dispose,
didChangeDependencies: didChangeDependencies,
didUpdateWidget: didUpdateWidget,
afterInitialBuild: afterInitialBuild,
afterRebuild: afterRebuild,
);
}