mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-19 07:35:26 +02:00
22 lines
539 B
Dart
22 lines
539 B
Dart
import 'package:camera/camera.dart';
|
|
|
|
class GlobalValuesManager {
|
|
static bool _hasBeenInitialized = false;
|
|
static List<CameraDescription> _cameras = [];
|
|
|
|
static List<CameraDescription> get cameras => [..._cameras];
|
|
static bool get hasBeenInitialized => _hasBeenInitialized;
|
|
|
|
static void setCameras(List<CameraDescription> cameras) {
|
|
if (_cameras.isNotEmpty) {
|
|
return;
|
|
}
|
|
|
|
_cameras = cameras;
|
|
}
|
|
|
|
static void setHasBeenInitialized(bool hasBeenInitialized) {
|
|
_hasBeenInitialized = hasBeenInitialized;
|
|
}
|
|
}
|