onTextsChanged method

void onTextsChanged(
  1. TextStyles texts
)

Implementation

void onTextsChanged(TextStyles texts) {
  emit(state.copyWith(
      textStyles: Map.fromEntries(texts.map((e) => MapEntry(e.name, e)))));
}