import 'package:flutter/foundation.dart'; class AnalysisController { final bool canStartService, force; final int progressTotal, progressOffset; final List? entryIds; final ValueNotifier _stopSignal = ValueNotifier(false); AnalysisController({ this.canStartService = true, this.entryIds, this.force = false, this.progressTotal = 0, this.progressOffset = 0, }) { if (kFlutterMemoryAllocationsEnabled) { FlutterMemoryAllocations.instance.dispatchObjectCreated( library: 'aves', className: '$AnalysisController', object: this, ); } } void dispose() { if (kFlutterMemoryAllocationsEnabled) { FlutterMemoryAllocations.instance.dispatchObjectDisposed(object: this); } _stopSignal.dispose(); } bool get isStopping => _stopSignal.value; void enableStopSignal() => _stopSignal.value = true; }