updateStartLocation method

bool updateStartLocation(
  1. String? newStartLocation
)

Implementation

bool updateStartLocation(String? newStartLocation) {
  if (newStartLocation == null) return false;
  try {
    var location = timeZoneDatabase.get(newStartLocation);
    start = TZDateTime.from(start as TZDateTime, location);
    return true;
  } on LocationNotFoundException {
    return false;
  }
}