add previewImageUrl property

This commit is contained in:
julian 2023-05-10 13:25:17 -06:00
parent 7c4237f8f8
commit 6ed6ffb18b

View file

@ -178,11 +178,13 @@ class StackThemeMetaData {
final String name; final String name;
final String id; final String id;
final String sha256; final String sha256;
final String previewImageUrl;
StackThemeMetaData({ StackThemeMetaData({
required this.name, required this.name,
required this.id, required this.id,
required this.sha256, required this.sha256,
required this.previewImageUrl,
}); });
static StackThemeMetaData fromMap(Map<String, dynamic> map) { static StackThemeMetaData fromMap(Map<String, dynamic> map) {
@ -191,6 +193,7 @@ class StackThemeMetaData {
name: map["name"] as String, name: map["name"] as String,
id: map["id"] as String, id: map["id"] as String,
sha256: map["sha256"] as String, sha256: map["sha256"] as String,
previewImageUrl: map["previewImageUrl"] as String,
); );
} catch (e, s) { } catch (e, s) {
Logging.instance.log( Logging.instance.log(
@ -203,6 +206,11 @@ class StackThemeMetaData {
@override @override
String toString() { String toString() {
return "$runtimeType(name: $name, id: $id, sha256: $sha256)"; return "$runtimeType("
"name: $name, "
"id: $id, "
"sha256: $sha256, "
"previewImageUrl: $previewImageUrl"
")";
} }
} }