VscodeColorThemeLoader class

Parses VS Code color theme JSON into a VscodeColorMap.

Handles #RRGGBB and #RRGGBBAA hex formats. Computes defaults for unspecified tokens based on the type field (vs-dark or vs).

Constructors

VscodeColorThemeLoader()
const

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

loadAsset(String filename) Future<VscodeColorMap>
Load a bundled theme asset by filename (e.g. dark_modern.json).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String jsonStr) VscodeColorMap
Parse a VS Code color theme JSON string.
parseJson(Map<String, dynamic> json) VscodeColorMap
Parse a decoded JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parseHexColor(String hex) Color?
Parse a hex color string: #RRGGBB or #RRGGBBAA.