nc-photos/lib/lab.dart
2021-09-09 02:07:52 +08:00

18 lines
358 B
Dart

import 'package:nc_photos/pref.dart';
/// Experimental feature flags
class Lab {
factory Lab() {
if (_inst == null) {
_inst = Lab._();
}
return _inst!;
}
bool get enableSharedAlbum => Pref.inst().isLabEnableSharedAlbumOr(false);
bool get enablePeople => Pref.inst().isLabEnablePeopleOr(false);
Lab._();
static Lab? _inst;
}