parsePossibleStyleMap function
Implementation
dynamic? parsePossibleStyleMap(Map<String, dynamic>? style) {
if (style == null) return null;
if (style.keys.any((element) =>
element.contains("minWidth") && element.contains("maxWidth"))) {
return style.map((key, value) =>
MapEntry(parseScreenScope(json.decode(key)), Style.fromJson(value)));
}
return Style.fromJson(style);
}