InitialData<D>.run constructor

InitialData<D>.run(
  1. D create(
    1. TransitionContext
    )
)

Creates an InitialData that will call the create function, passing the TransitionContext for the transition in progress, to obtain the initial data value. The function is called each time the data state is entered.

Implementation

factory InitialData.run(D Function(TransitionContext) create) {
  return InitialData._(create);
}