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 LimitedBox(
maxWidth: map.containsKey("maxWidth") ? map['maxWidth'] : double.infinity,
maxHeight:
map.containsKey("maxHeight") ? map['maxHeight'] : double.infinity,
child: DynamicWidgetBuilder.buildFromMap(
map['child'], buildContext, listener),
);
}