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 Positioned(
child: DynamicWidgetBuilder.buildFromMap(
map["child"], buildContext, listener)!,
top: map.containsKey("top") ? map["top"]?.toDouble() : null,
right: map.containsKey("right") ? map["right"]?.toDouble() : null,
bottom: map.containsKey("bottom") ? map["bottom"]?.toDouble() : null,
left: map.containsKey("left") ? map["left"]?.toDouble() : null,
width: map.containsKey("width") ? map["width"]?.toDouble() : null,
height: map.containsKey("height") ? map["height"]?.toDouble() : null,
);
}