copyWithNewStyleFamily method
StyleSelectionInitialized
copyWithNewStyleFamily(
- StyleFamily styleFamily,
- 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;
}