expire static method

Future<void> expire(
  1. String key,
  2. Duration? expireTime
)

Sets (or with null removes) the expiry of a saved key. ULocalStorage.expire("otp", 2.minutes)

Implementation

static Future<void> expire(String key, Duration? expireTime) => _storeFor(key).expire(key, expireTime);