StudyProtocol constructor

StudyProtocol({
  1. required String ownerId,
  2. required String name,
  3. String description = '',
})

Create a new protocol. ownerId and name must be specified.

Implementation

StudyProtocol({
  required this.ownerId,
  required this.name,
  this.description = '',
}) : super() {
  creationDate = DateTime.now().toUtc();
}