copyWithNewStyleFamily method

  1. @override
StyleSelectionInitialized copyWithNewStyleFamily(
  1. StyleFamily styleFamily,
  2. List<Style> allStyles
)
override

Implementation

@override
StyleSelectionInitialized copyWithNewStyleFamily(
    StyleFamily styleFamily, List<Style> allStyles) {
  var newOne = StyleSelectionInitializedWithSelection(
      families: StyleSelectionInitialized.copyAndReplace(
          families, StyleFamilyState(styleFamily, allStyles)),
      currentSelectedStyle: currentSelectedStyle);
  return newOne;
}