parse method

  1. @override
Widget parse(
  1. Map<String, dynamic> map,
  2. BuildContext buildContext,
  3. ClickListener? listener
)
override

parse the json map into a flutter widget.

Implementation

@override
Widget parse(Map<String, dynamic> map, BuildContext buildContext,
    ClickListener? listener) {
  return AspectRatio(
    aspectRatio: map["aspectRatio"]?.toDouble(),
    child: DynamicWidgetBuilder.buildFromMap(
        map["child"], buildContext, listener),
  );
}