S class

A convenience class for accessing CallKit localizations.

This class provides static methods to retrieve localized strings with intelligent fallback logic:

  1. First checks the default language preference from DefaultLanguage
  2. Falls back to BuildContext if provided
  3. Finally uses the system locale or defaults to English

Example usage:

final localizations = S.of(context);
final message = localizations.youHaveANewCall;

See also:

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.