LanguagePackInfo class final

Contains information about a language pack

Inheritance

Constructors

LanguagePackInfo({required String id, required String baseLanguagePackId, required String name, required String nativeName, required String pluralCode, required bool isOfficial, required bool isRtl, required bool isBeta, required bool isInstalled, required int totalStringCount, required int translatedStringCount, required int localStringCount, required String translationUrl, dynamic extra, int? clientId})
Contains information about a language pack
const
LanguagePackInfo.fromJson(Map<String, dynamic> json)
Parses a LanguagePackInfo from TDLib JSON.
factory

Properties

baseLanguagePackId → String
Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it must be fetched from base language pack. Unsupported in custom language packs
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique language pack identifier
final
isBeta → bool
True, if the language pack is a beta language pack
final
isInstalled → bool
True, if the language pack is installed by the current user
final
isOfficial → bool
True, if the language pack is official
final
isRtl → bool
True, if the language pack strings are RTL
final
localStringCount → int
Total number of non-deleted strings from the language pack available locally
final
name → String
Language name
final
nativeName → String
Name of the language in that language
final
pluralCode → String
A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more information
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalStringCount → int
Total number of non-deleted strings from the language pack
final
translatedStringCount → int
Total number of translated strings from the language pack
final
translationUrl → String
Link to language translation interface; empty for custom local language packs
final

Methods

copyWith({String? id, String? baseLanguagePackId, String? name, String? nativeName, String? pluralCode, bool? isOfficial, bool? isRtl, bool? isBeta, bool? isInstalled, int? totalStringCount, int? translatedStringCount, int? localStringCount, String? translationUrl, dynamic extra, int? clientId}) → LanguagePackInfo
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.