Widget build()

in skp_generator/lib/main.dart [162:177]


  Widget build(BuildContext context) {
    assert(_name == null);
    if (_index >= widget.widgets.length) {
      print('Terminating...');
      exit(0);
    }
    Widget target = widget.widgets[_index];
    if (_lastType != target.runtimeType) {
      _lastType = target.runtimeType;
      _subindex = 0;
    }
    _index += 1;
    _subindex += 1;
    _name = '$_lastType.${_subindex.toString().padLeft(2, "0")}';
    return target;
  }