getNewKey method
Implementation
Future<String> getNewKey(
LocalDatabase localDatabase, {
String? barcode = BackgroundTaskProgressing.noBarcode,
int? totalSize,
int? soFarSize,
String? work,
ProductType? productType,
}) async {
final int sequentialId = await DaoInt(
localDatabase,
).getNextSequenceNumber(_uniqueSequenceKey);
return '$header'
'$_transientHeaderSeparator$sequentialId'
'$_transientHeaderSeparator$barcode'
'$_transientHeaderSeparator${totalSize == null ? '' : totalSize.toString()}'
'$_transientHeaderSeparator${soFarSize == null ? '' : soFarSize.toString()}'
'$_transientHeaderSeparator${work ?? ''}'
'$_transientHeaderSeparator${productType == null ? '' : productType.offTag}';
}