Files
fcs/lib/pages/po/po_files.dart

28 lines
606 B
Dart
Raw Normal View History

2020-05-29 07:45:27 +06:30
import 'dart:io';
class POFiles {
File poPaymentFile, storageChargeFile;
List<File> poPaymentFilesAdded=[];
List<String> poPaymentFilesRemoved=[]; // only url
bool poFileChanged = false, storageFileChanged = false;
set addPoPaymentFile(File file) {
poPaymentFilesAdded.add(file);
poFileChanged = true;
}
set removePoPaymentFile(String url) {
poPaymentFilesRemoved.add(url);
poFileChanged = true;
}
set setStorageChargeFile(File file) {
storageChargeFile = file;
storageFileChanged = true;
}
bool get anyChanged => poFileChanged || storageFileChanged;
}