copyWithNewStyleFamily method

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

Implementation

@override
StyleSelectionInitialized copyWithNewStyleFamily(
    StyleFamily styleFamily, List<Style> allStyles) {
  return StyleSelectionInitializedWithoutSelection(
      families: StyleSelectionInitialized.copyAndReplace(
          families, StyleFamilyState(styleFamily, allStyles)));
}