ExtractedKey class
Represents a single extracted i18n key from source code.
Constructors
-
ExtractedKey({required String key, required String filePath, required int line, required int column, required I18nCallType callType, Set<
String> placeholders = const {}, bool isPlural = false, String? snippet}) -
const
Properties
- callType → I18nCallType
-
Type of i18n API call used.
final
- column → int
-
Column number in the source file.
final
- filePath → String
-
Source file path where this key was found.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isPlural → bool
-
True if this is a plural call (tn).
final
- key → String
-
The msgid/key string.
final
- line → int
-
Line number in the source file.
final
-
placeholders
→ Set<
String> -
Detected placeholders in the key (e.g.,
{name}->name).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snippet → String?
-
Code snippet for context.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override