blob: 1f8c1a9e966ad1052b742ec38a3c9f390343ac76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import 'package:flutter_ics_homescreen/export.dart';
class AudioNotifier extends StateNotifier<Audio> {
AudioNotifier(super.state);
void resetToDefaults() {
state = state.copyWith(treble: 5.0, bass: 5.0, rearFront: 5.0);
}
void setTreble(double newVal) {
state = state.copyWith(treble: newVal);
}
void setBass(double newVal) {
state = state.copyWith(bass: newVal);
}
void setRearFront(double newVal) {
state = state.copyWith(rearFront: newVal);
}
}
|