CustomParameter<T> class Null safety

A class used to define and parse custom parameters in step definitions see https://docs.cucumber.io/cucumber/cucumber-expressions/#custom-parameter-types

Implementers

Constructors

CustomParameter(String name, RegExp pattern, Transformer<T?> transformer, {String identifierPrefix = '{', String identifierSuffix = '}', bool includeInParameterList = true})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
identifier String
read-only
identifierPrefix String
The prefix used for the name token to identify this parameter. Defaults to "{".
final
identifierSuffix String
The suffix used for the name token to identify this parameter. Defaults to "}".
final
includeInParameterList bool
If this parameter should be included in the list of step arguments. Defaults to true.
final
name String
the name in the step definition to search for. This is combined with the identifier prefix / suffix to create a replaceable token that signals this parameter for example "My name is {string}" so the name would be "string".
final
pattern RegExp
the regex pattern that can parse the step string For example: Template: "My name is {string}" Step: "My name is 'Jon'" Regex: "'|"'|\"" The above regex would pull out the word "Jon" from the step
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transformer Transformer<T?>
A transformer function that takes a string and return the correct type of this parameter
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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