getGeneratedFilePath method

String getGeneratedFilePath()

Implementation

String getGeneratedFilePath() {
  final lastDotDart = path.lastIndexOf('.dart');

  final fileExtension = '.${suffix ?? 'g'}.dart';
  final subPath = '${path.substring(0, lastDotDart)}$fileExtension';

  return pathUtils.relative(subPath, from: Utils.projectDirectory);
}