callRegistrationFunction method

void callRegistrationFunction({
  1. required Type tutorialType,
  2. required dynamic caller,
  3. State<StatefulWidget>? state,
})

Calls the registration function for a specific tutorial type.

tutorialType is the type of the tutorial to register. caller is the object calling the registration function. state is an optional State object that can be passed to the registration function.

Implementation

void callRegistrationFunction({required Type tutorialType, required dynamic caller, State? state}) {
  Tutorial? tutorialContainer = _tutorialContainers[tutorialType];
  if (tutorialContainer != null) {
    tutorialContainer.registrationFunction(this, caller, state: state);
  }
}