updateCurrentTheme method

void updateCurrentTheme(
  1. EmergentThemeData update
)

Implementation

void updateCurrentTheme(EmergentThemeData update) {
  if (value.useDark) {
    final newValue = value.copyWith(darkTheme: update);
    //this.value = newValue;
    onChanged(newValue);
  } else {
    final newValue = value.copyWith(theme: update);
    //this.value = newValue;
    onChanged(newValue);
  }
}