write method

  1. @override
Future<void> write(
  1. GeneratedFile file
)
override

Prints the target path and file contents instead of writing to disk.

Implementation

@override
/// Prints the target path and file contents instead of writing to disk.
Future<void> write(GeneratedFile file) async {
  logger
    ..write('Would write: ${file.path}\n')
    ..write(file.content);
}