formatName method

  1. @override
String formatName()
override

the name of file with extension

If nameConfig, then the name will be formatted with mustache, prepended with prefix, and appended with suffix

Implementation

@override
String formatName() {
  final name = this.name?.format(trailing: extension) ??
      p.basename(pathWithoutSourceDir);

  return include?.apply(name) ?? name;
}