approvedFileName property

  1. @override
String get approvedFileName
override

A getter named approvedFileName that returns the string 'file_name.approved.txt'.

Implementation

@override
String get approvedFileName {
  if (options != null) {
    return options!.approvedFileName;
  }
  if (description != null) {
    return addTestName
        ? '$_fileName.$currentTestName.$_updatedDescription.$approvedExtension'
        : '$_fileName.$_updatedDescription.$approvedExtension';
  }
  return addTestName
      ? '$_fileName.$currentTestName.$approvedExtension'
      : '$_fileName.$approvedExtension';
}