selectStyle method

Implementation

StyleSelectionInitializedWithSelection selectStyle(
    Style style, StyleSelectionInitialized state) {
  app.styleFamily = style.styleFamily.familyName;
  app.styleName = style.styleName;
  if (feedbackSelection != null) {
    feedbackSelection!(app.styleFamily, app.styleName);
  }
  return StyleSelectionInitializedWithSelection(
    families: state.families,
    currentSelectedStyle: style,
  );
}