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 Stack(
alignment: map.containsKey("alignment")
? parseAlignment(map["alignment"])!
: AlignmentDirectional.topStart,
textDirection: map.containsKey("textDirection")
? parseTextDirection(map["textDirection"])
: null,
fit: map.containsKey("fit") ? parseStackFit(map["fit"])! : StackFit.loose,
clipBehavior: map.containsKey("clipBehavior")
? parseClip(map["clipBehavior"])!
: Clip.hardEdge,
children: DynamicWidgetBuilder.buildWidgets(
map['children'], buildContext, listener),
);
}