StepInput class
Holds the configuration, executable callback, parameters, and expected assertion outcomes for a single BDD scenario step.
Immutably preserves step metadata while offering copy-with mutation methods to layer logic, parameters, or exception assertions onto an existing instance.
Constructors
Properties
- callback → Function?
-
final
- description → String?
-
final
- exceptionMessage → String?
-
final
- exceptionType → Type?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- params → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
) → StepResult - Executes the internal callback logic to determine test step outcomes.
-
executeAsSkipped(
) → StepResult -
expectException<
T extends Object> ([String? expectedMessage]) → StepInput -
Flags this step to expect a runtime exception of type
Tduring invocation. -
getDescription(
) → String? - Resolves a localized, human-readable description for this step instance.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withCallback(
Function fn) → StepInput -
Creates a new copy of StepInput with the specified executable
fnattached. -
withParams(
dynamic newParams) → StepInput - Creates a new copy of StepInput updated with runtime execution parameters.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited