shuffle method

  1. @override
ForLoopStatement shuffle()
override

Shuffle the contents of the Statement.

This is only relevant for compound Statements, such as ForLoopStatement.

Non-compound statements, e.g., VariableDeclarationStatement, simply return themselves.

Implementation

@override
ForLoopStatement shuffle() {
  return ForLoopStatement.init(
    initStatement,
    condition,
    postStatement,
    bodyStatements.map((e) => e.shuffle()).toList()..shuffle(),
  );
}