parse method
Widget
parse(
- Map<
String, dynamic> map, - BuildContext buildContext,
- ClickListener? listener
override
parse the json map into a flutter widget.
Implementation
@override
Widget parse(Map<String, dynamic> map, BuildContext buildContext, ClickListener? listener) {
return OverflowBox(
alignment: map.containsKey("alignment")
? parseAlignment(map["alignment"])!
: Alignment.center,
minWidth: map.containsKey("minWidth")?map['minWidth']:null,
maxWidth: map.containsKey("maxWidth")?map['maxWidth']:null,
minHeight: map.containsKey("minHeight")?map['minHeight']:null,
maxHeight: map.containsKey("maxHeight")?map['maxHeight']:null,
child: DynamicWidgetBuilder.buildFromMap(map['child'], buildContext, listener),
);
}