1. Observe("currentDate")
void computeMothYear([_])

Source

@Observe("currentDate")
void computeMothYear([_]) {
  monthYear = currentDate!=null ?monthDateFormat.format(currentDate):"...";
}