Skip to content

Commit

Permalink
doc: Add docstring to endTime setter
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-bermonti committed Feb 25, 2024
1 parent 276bf23 commit 4c7ef88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/digit_span_task/components/data/data_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class DataManager extends GetxController {
}
}

/// Sets the end time for the session, but only if this is a experimental
/// phase. Practice and experimental phases are considered part of the same
/// session so the end time for the experimental phase is considered the
/// end of the session.
set endTime(DateTime time) {
if (!_config.isPractice) {
_endTime = DateTime.now();
Expand Down

0 comments on commit 4c7ef88

Please sign in to comment.