marking method Null safety

  1. @protected
void marking()

Get the latest mark

Implementation

@protected
void marking() {
  if (measure is MarkedMeasure) {
    String? mark =
        Settings().preferences!.getString((measure as MarkedMeasure).tag());
    debug('mark : $mark');
    (measure as MarkedMeasure).lastTime =
        (mark != null) ? DateTime.tryParse(mark) : null;
  }
}