mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-20 22:41:38 +02:00
Replace 16 private SettingsNotifier fakes that only returned a fixed AppSettings with test/support/fixed_settings.dart. Mornye owner WIP tests and bespoke fakes are untouched.
13 lines
393 B
Dart
13 lines
393 B
Dart
import 'package:spotiflac_android/models/settings.dart';
|
|
import 'package:spotiflac_android/providers/settings_provider.dart';
|
|
|
|
/// Skips loading persisted settings and serves [initial] unchanged.
|
|
class FixedSettingsNotifier extends SettingsNotifier {
|
|
FixedSettingsNotifier([this.initial = const AppSettings()]);
|
|
|
|
final AppSettings initial;
|
|
|
|
@override
|
|
AppSettings build() => initial;
|
|
}
|