tickerProvider<R> method Null safety

StateWithMixinBuilder<TickerProviderStateMixin<StatefulWidget>, R> tickerProvider<R>(
  1. {Key? key,
  2. dynamic tag,
  3. Widget builder(
    1. BuildContext context,
    2. Injected<R>? rm
    )?,
  4. Widget builderWithChild(
    1. BuildContext context,
    2. Injected<R>? rm,
    3. Widget? child
    )?,
  5. Widget? child,
  6. InjectedBaseState<R> observe(
      )?,
    1. void initState(
      1. BuildContext context,
      2. Injected<R>? rm,
      3. TickerProviderStateMixin<StatefulWidget>? ticker
      )?,
    2. void dispose(
      1. BuildContext context,
      2. Injected<R>? rm,
      3. TickerProviderStateMixin<StatefulWidget>? ticker
      )?,
    3. void didChangeDependencies(
      1. BuildContext context,
      2. Injected<R>? rm,
      3. TickerProviderStateMixin<StatefulWidget>? ticker
      )?,
    4. void didUpdateWidget(
      1. BuildContext context,
      2. StateWithMixinBuilder<TickerProviderStateMixin<StatefulWidget>, R> old,
      3. TickerProviderStateMixin<StatefulWidget>? ticker
      )?,
    5. void afterInitialBuild(
      1. BuildContext context,
      2. Injected<R>? rm
      )?,
    6. void afterRebuild(
      1. BuildContext context,
      2. Injected<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 with child parameter.
      • child : Widget to be used with builderWithChild. Used for optimization. builder or and only or builderWithChild with child 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 updated
      • afterInitialBuild : 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, Injected<R>? rm)? builder,
      Widget Function(BuildContext context, Injected<R>? rm, Widget? child)?
          builderWithChild,
      Widget? child,
      InjectedBaseState<R> Function()? observe,
      void Function(BuildContext context, Injected<R>? rm,
              TickerProviderStateMixin? ticker)?
          initState,
      void Function(BuildContext context, Injected<R>? rm,
              TickerProviderStateMixin? ticker)?
          dispose,
      void Function(BuildContext context, Injected<R>? rm,
              TickerProviderStateMixin? ticker)?
          didChangeDependencies,
      void Function(
              BuildContext context,
              StateWithMixinBuilder<TickerProviderStateMixin, R> old,
              TickerProviderStateMixin? ticker)?
          didUpdateWidget,
      void Function(BuildContext context, Injected<R>? rm)? afterInitialBuild,
      void Function(BuildContext context, Injected<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,
      );
    }