setup method

void setup()

Implementation

void setup() {
  FlutlyVariable fontConfig = Get.find(tag: "fonts");
  Map<String, FlutlyVariable> fontVariants = fontConfig.getChildren();

  fontVariants.forEach(
    (key, value) {
      double size = value.getChild("size").getValue();
      double minSize = value.getChild("min_size").getValue();
      double maxSize = value.getChild("max_size").getValue();

      fonts.add(FlutlyFont(key, size, minSize, maxSize));
    },
  );
}