mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
22 lines
639 B
Dart
22 lines
639 B
Dart
import 'package:rxdart/rxdart.dart';
|
|
|
|
/// Manage volatile global variables bonded to an account session, when the
|
|
/// session ends (i.e., sign out), the variables are cleared
|
|
class SessionController {
|
|
SessionController();
|
|
|
|
void dispose() {
|
|
_hasFiredMetadataTaskController.close();
|
|
}
|
|
|
|
@Deprecated("Use MetadataController")
|
|
ValueStream<bool> get hasFiredMetadataTask =>
|
|
_hasFiredMetadataTaskController.stream;
|
|
|
|
@Deprecated("Use MetadataController")
|
|
void setFiredMetadataTask(bool value) {
|
|
_hasFiredMetadataTaskController.add(value);
|
|
}
|
|
|
|
final _hasFiredMetadataTaskController = BehaviorSubject.seeded(false);
|
|
}
|