nc-photos/lib/lab.dart

18 lines
291 B
Dart
Raw Normal View History

2021-08-08 20:46:16 +02:00
import 'package:nc_photos/pref.dart';
2021-08-07 22:34:44 +02:00
/// Experimental feature flags
class Lab {
factory Lab() {
if (_inst == null) {
_inst = Lab._();
}
return _inst!;
}
2021-08-08 20:46:16 +02:00
bool get enableSharedAlbum => Pref.inst().isLabEnableSharedAlbumOr(false);
2021-08-07 22:34:44 +02:00
Lab._();
static Lab? _inst;
}