needsReload property

bool needsReload

Implementation

bool get needsReload {
  bool reload = false;

  // Validate the cart expiration date
  final now = DateTime.now();
  if (this.expirationDate != null && now.isAfter(this.expirationDate)) {
    // The cart has expired, reload it
    return true;
  }

  // TODO: Further validation

  return reload;
}