generate method

  1. @override
Widget generate(
  1. Context context
)
override

Implementation

@override
Widget generate(Context context) {
  if (!_isWhile) {
    cond = Condition.not(cond);
  }
  var ex = Execute(If: cond, children: [File.recursive()]);
  if (translate != null) ex = ex.positioned(translate);
  final children = then ?? [];
  children.add(ex);
  var gr = Group(filename: 'doloop', children: children, groupMin: 0);
  if (testBefore) return If(cond, then: [gr]);
  return gr;
}