StoreLicense class

A Microsoft Store add-on license.

Constructors

StoreLicense({bool? isActive, bool? isEntitled, String? skuStoreId, String? productStoreId, String? inAppOfferToken, num? expirationDate, int? expirationDateEpochMilliseconds, String? extendedJsonData})
Creates an add-on license value.
const
StoreLicense.fromJson(Map<String, dynamic> json)
Creates an add-on license from a structured channel payload.
factory

Properties

expirationDate → num?
Raw Windows Runtime ticks since 1601-01-01 UTC.
final
expirationDateEpochMilliseconds → int?
License expiration as Unix epoch milliseconds in UTC.
final
expiresAt → DateTime?
UTC expiration time converted from the structured epoch value or legacy Windows Runtime ticks.
no setter
extendedJsonData → String?
Raw extended JSON supplied by Microsoft Store.
final
hashCode → int
The hash code for this object.
no setterinherited
inAppOfferToken → String?
Developer-defined in-app offer token.
final
isActive → bool?
Retained for source compatibility. Microsoft documents that add-on StoreLicense.IsActive currently always returns true.
final
isEntitled → bool?
Native entitlement result computed from presence and expiration time.
final
productStoreId → String?
Product Store ID associated with this license.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skuStoreId → String?
SKU Store ID associated with this license.
final

Methods

getExpirationDate() → DateTime?
Backwards-compatible alias for expiresAt.
isCurrentlyEntitled({DateTime? at}) → bool
Client-side entitlement check that also bounds stale offline licenses by their Microsoft Store expiration time.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this license to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited