ParsedLocaleFile class

Represents a parsed Sway locale file.

Constructors

ParsedLocaleFile({required String languageCode, required Map<String, dynamic> data, required String filePath})
Creates a ParsedLocaleFile.
const
ParsedLocaleFile.load(String path)
Loads and parses a .sway.json file from disk.
factory

Properties

data → Map<String, dynamic>
The parsed key-value map from the JSON file.
final
filePath → String
The source file path.
final
hashCode → int
The hash code for this object.
no setterinherited
languageCode → String
The language code (e.g. en, ar).
final
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

detectDuplicateKeys(String content) → List<String>
Detects duplicate keys in raw JSON string content.