type property
The type of expiration for the given package.
This property indicates what expiration entails for a given package. That is, when the package expires:
- It is out-of-date but can still be used (see ExpirationType.allowExpiredAccess)
- It can no longer be used and will fail to load (see ExpirationType.preventExpiredAccess)
Implementation
ExpirationType get type {
final coreValue = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_Expiration_getType(
_handle,
errorHandler,
);
});
return ExpirationType._fromCoreValue(
coreValue,
);
}