isExpired static method

bool isExpired(
  1. int expiry
)

Implementation

static bool isExpired(int expiry) {
  return DateTime.now().toUtc().compareTo(
            DateTime.fromMillisecondsSinceEpoch(
              toMilliseconds(expiry),
            ),
          ) >=
      0;
}