format method

Future<void> format({
  1. String target = 'lib',
})

Formats Dart files in the specified target.

Defaults to the lib directory.

Implementation

Future<void> format({String target = 'lib'}) async {
  await runDart(['format', target]);
}