materialAndBatchOk static method
Implementation
static bool materialAndBatchOk({
required String orderMaterial,
required String? material,
String? orderBatch,
String? batch,
}) {
bool materialIsOk = orderMaterial == material;
bool batchIsOk = orderBatch != null
? orderBatch == batch
: batch?.isEmpty ?? true;
return materialIsOk && batchIsOk;
}