updateCurrentTheme method

void updateCurrentTheme(
  1. NeumorphicThemeData update
)

Implementation

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