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 IndexedStack(
index: map.containsKey("index") ? map["index"] : 0,
alignment: map.containsKey("alignment")
? parseAlignment(map["alignment"])!
: AlignmentDirectional.topStart,
textDirection: map.containsKey("textDirection")
? parseTextDirection(map["textDirection"])
: null,
children: DynamicWidgetBuilder.buildWidgets(
map['children'], buildContext, listener),
);
}