getPackage method

Package? getPackage(
  1. String identifier
)

Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard.

Implementation

Package? getPackage(String identifier) => availablePackages
    .firstWhereOrNull((package) => package.identifier == identifier);