flatMapPath static method

String flatMapPath({
  1. required String outputPath,
  2. required String pathSeparator,
})

Implementation

static String flatMapPath({
  required String outputPath,
  required String pathSeparator,
}) {
  final fileNameNoExtension = PathUtils.getFileNameNoExtension(outputPath);
  final fileName = '${fileNameNoExtension}_map.g.dart';
  return PathUtils.replaceFileName(
    path: outputPath,
    newFileName: fileName,
    pathSeparator: pathSeparator,
  );
}