addVersion method Null safety

Future addVersion(
  1. StudyProtocol protocol,
  2. [String? versionTag]
)

Add a new version for the specified study protocol, of which a previous version with the same owner and name is already stored.

versionTag is an optional unique label used to identify this specific version of the protocol. The current date/time by default.

Implementation

Future addVersion(StudyProtocol protocol, [String? versionTag]);