convertToExtendedTimestamp static method

String convertToExtendedTimestamp(
  1. int timestamp, [
  2. String? uuid
])

Implementation

static String convertToExtendedTimestamp(int timestamp, [String? uuid]) {
  if (uuid != null) {
    _uuid = uuid;
  } else {
    uuid = _uuid;
  }
  if (uuid == null) {
    throw StorageException(
        'Either init is needed or a uuid!=null must be specified');
  }
  return '${timestamp.toString().padLeft(20, '0')}-$uuid';
}