setTutorialProperties method

void setTutorialProperties(
  1. String titleLeadingAction,
  2. String descriptionLeadingAction,
  3. String titleOrientationAction,
  4. String descriptionOrientationAction,
  5. String titleScreenAction,
  6. String descriptionScreen, {
  7. String? titleThemeAction,
  8. String? descriptionThemeAction,
  9. String? titleDropdownAction,
  10. String? descriptionDropdownAction,
})

Implementation

void setTutorialProperties(
    String titleLeadingAction,
    String descriptionLeadingAction,
    String titleOrientationAction,
    String descriptionOrientationAction,
    String titleScreenAction,
    String descriptionScreen,{
        String? titleThemeAction,
        String? descriptionThemeAction,
        String? titleDropdownAction,
        String? descriptionDropdownAction
    }
    ) {
  //  SET PROPERTIES THAT ARE NOT NULLABLE
  issueTitle = titleLeadingAction;
  issueDescription = descriptionLeadingAction;
  orientationTitle = titleOrientationAction;
  orientationDescription = descriptionOrientationAction;
  screenTitle = titleScreenAction;
  screenDescription = descriptionScreen;

  //  SET NULLABLE PROPERTIES
  themeTitle = titleThemeAction ?? themeTitle;
  themeDescription = descriptionThemeAction ?? themeDescription;
  dropDownTitle = titleDropdownAction ?? dropDownTitle;
  dropDownDescription = descriptionDropdownAction ?? dropDownDescription;
}