formatStatement method

String formatStatement (
  1. String source
)

Formats the given source string containing a single Dart statement.

Implementation

String formatStatement(String source) {
  return formatSource(SourceCode(source, isCompilationUnit: false)).text;
}