fromKey static method

AppwinProduct? fromKey(
  1. Object? key
)

The product for key, or null for one this package does not know: a native SDK newer than this package may report products it has never heard of.

Implementation

static AppwinProduct? fromKey(Object? key) {
  for (final product in values) {
    if (product.key == key) return product;
  }
  return null;
}