EntitlementInfos constructor

const EntitlementInfos(
  1. Map<String, EntitlementInfo> all,
  2. Map<String, EntitlementInfo> active, {
  3. @Default(VerificationResult.notRequested) VerificationResult verification,
})

Implementation

const factory EntitlementInfos(
  /// Map of all EntitlementInfo (`EntitlementInfo`) objects (active and inactive)
  /// keyed by entitlement identifier.
  final Map<String, EntitlementInfo> all,

  /// Map of active EntitlementInfo (`EntitlementInfo`) objects keyed by
  /// entitlement identifier.
  final Map<String, EntitlementInfo> active, {

  /// If entitlement verification was enabled, the result of that verification.
  /// If not, `VerificationResult.NOT_REQUESTED`.
  @Default(VerificationResult.notRequested)
  final VerificationResult verification,
}) = _EntitlementInfos;