Namer class final

A standard file namer without indexing.

The Namer class extends BaseNamer and provides functionality to generate approved and received file names and paths based on customizable options.

Inheritance

Constructors

Namer.new({String? filePath, FileNamerOptions? options, bool addTestName = true, String? description, bool useSubfolder = false})
Creates a Namer instance with customizable file naming parameters.
const

Properties

addTestName bool
Determines whether the test name should be included in the generated file name.
finalinherited
approved String
Returns the fully qualified file path for the approved file.
no setteroverride
approvedFileName String
Returns the file name for the approved file.
no setteroverride
currentTestName String
Retrieves the current test name formatted for file naming.
no setterinherited
description String?
An optional description to append to the file name for clarity.
finalinherited
filePath String?
The base file path where the approval and received files will be stored. Can be null if not explicitly set.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
options FileNamerOptions?
Configuration options that influence how file names are generated. Can be null if default behavior is used.
finalinherited
received String
Returns the fully qualified file path for the received file.
no setteroverride
receivedFileName String
Returns the file name for the received file.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useSubfolder bool
Determines whether files should be placed inside a subfolder.
finalinherited

Methods

copyWith({String? filePath, FileNamerOptions? options, bool? addTestName, String? description, bool? useSubfolder}) Namer
Creates a new Namer instance with updated values while preserving existing values when parameters are not provided.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited