description property

String get description
inherited

The description from studyDescription, or an empty string if none.

Implementation

String get description => studyDescription?.description ?? '';
  1. @override
set description (String? description)
override

Sets the description in studyDescription.

Creates a StudyDescription titled with name if there is none.

Implementation

@override
set description(String? description) {
  if (studyDescription != null) {
    studyDescription!.description = description;
  } else {
    studyDescription = StudyDescription(title: name, description: description);
  }
}