BaseProductionController constructor
BaseProductionController(
- dynamic dataCertificate
Implementation
BaseProductionController(this.dataCertificate) {
typeFrom = dataCertificate?[TypeFrom] ??
dataCertificate?['typeFrom'] ??
TypeFrom.createNew.name;
try {
ProductModel product = dataCertificate?['production'] as ProductModel;
maNV = product.maNv;
} catch (e) {
try {
CertificateObj cer = dataCertificate?['production'] as CertificateObj;
maNV = cer.nv;
} catch (e) {}
}
appController = Get.find<AppController>();
}