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 FittedBox(
alignment: map.containsKey("alignment")
? parseAlignment(map["alignment"])!
: Alignment.center,
fit: map.containsKey("fit") ? parseBoxFit(map["fit"])! : BoxFit.contain,
child: DynamicWidgetBuilder.buildFromMap(
map["child"], buildContext, listener),
);
}