has abstract method

bool has(
  1. String key, {
  2. String? locale,
  3. String? namespace,
})

Checks if a translation key exists.

  • key: The translation key.
  • locale: Locale to check; uses current if null.
  • namespace: Namespace to search in.
  • Returns: True if the key exists.

Implementation

bool has(String key, {String? locale, String? namespace});