S class
A convenience class for accessing CallKit localizations.
This class provides static methods to retrieve localized strings with intelligent fallback logic:
- First checks the default language preference from DefaultLanguage
- Falls back to BuildContext if provided
- Finally uses the system locale or defaults to English
Example usage:
final localizations = S.of(context);
final message = localizations.youHaveANewCall;
See also:
- CallKitClientLocalizations, the base localization class
- delegate, the localization delegate for use in MaterialApp
Constructors
- S()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
[BuildContext? context]) → CallKitClientLocalizations - Retrieves the appropriate CallKitClientLocalizations instance.
Constants
-
delegate
→ const LocalizationsDelegate<
CallKitClientLocalizations> - The LocalizationsDelegate for CallKit localizations.