mirror of
https://github.com/Myzel394/quid_faciam_hodie.git
synced 2025-06-19 07:35:26 +02:00
16 lines
353 B
Dart
16 lines
353 B
Dart
import 'package:camera/camera.dart';
|
|
|
|
class GlobalValuesManager {
|
|
static List<CameraDescription> _cameras = [];
|
|
|
|
static List<CameraDescription> get cameras => [..._cameras];
|
|
|
|
static void setCameras(List<CameraDescription> cameras) {
|
|
if (_cameras.isNotEmpty) {
|
|
throw Exception('Cameras already set');
|
|
}
|
|
|
|
_cameras = cameras;
|
|
}
|
|
}
|