MatrixData class

Utility class to parse and generate compressed string representations of matrix frames, useful for saving, loading, or exporting animations from the Dot Matrix Studio.

Constructors

MatrixData()

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

decode(String data) → List<List<int>>
Parses a compact string representation of a grid into a 2D List.
decodeFrames(String data) → List<List<List<int>>>
Parses a string of multiple frames separated by commas.
encode(List<List<int>> grid) → String
Compresses a 2D List grid into a compact string representation.
encodeFrames(List<List<List<int>>> frames) → String
Compresses a list of frames into a single string, separated by commas.
framesFromJson(Map<String, dynamic> json) → List<List<List<int>>>
Deserializes a list of frames from the map shape produced by framesToJson.
framesToJson(List<List<List<int>>> frames) → Map<String, dynamic>
Serializes a list of frames to a JSON-compatible map.
fromJson(Map<String, dynamic> json) → List<List<int>>
Deserializes a 2D grid from the map shape produced by toJson.
toJson(List<List<int>> grid) → Map<String, dynamic>
Serializes a single 2D grid to a JSON-compatible map.

Constants

jsonSchemaVersion → const int
Current JSON schema version. Bumped when the on-disk shape changes in a non-backwards-compatible way. Stored in framesToJson's output so future readers can branch on it.