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 Align(
alignment: map.containsKey("alignment")
? parseAlignment(map["alignment"])!
: Alignment.center,
widthFactor: map.containsKey("widthFactor")
? map["widthFactor"]?.toDouble()
: null,
heightFactor: map.containsKey("heightFactor")
? map["heightFactor"]?.toDouble()
: null,
child: DynamicWidgetBuilder.buildFromMap(
map["child"], buildContext, listener),
);
}