StepContext<TWorld extends World> class

Class that contains the contextual information when a step is run Provides access to the world, reporter, step configuration and expect functions.

Constructors

StepContext(TWorld world, Reporter reporter, StepDefinitionConfiguration configuration)

Properties

configuration StepDefinitionConfiguration
final
hashCode int
The hash code for this object.
no setterinherited
reporter Reporter
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
world → TWorld
final

Methods

expect(dynamic actual, dynamic matcher, {String? reason}) → void
Assert that actual matches matcher, reason is optional.
expectA(dynamic actual, dynamic matcher, {String? reason}) → void
Assert that actual matches matcher, reason is optional.
expectMatch(dynamic actual, dynamic matcher, {String? reason}) → void
Assert that actual matches matcher, reason is optional.
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