hasStringId method

bool hasStringId(
  1. String stringId, {
  2. String? currentLocale,
})

Returns true if the given stringId exists for the effective locale

Implementation

bool hasStringId(String stringId, {String? currentLocale}) {
  final effectiveLocale = currentLocale ?? _currentLocale;
  final paywallString = _localizedStrings[effectiveLocale]?[stringId];
  return paywallString != null && paywallString.value != null;
}