ActionCase constructor
const
ActionCase({
- required String name,
- required Map<
String, dynamic> config, - required Map<
String, dynamic> state, - required Map<
String, dynamic> obs, - required Map<
String, dynamic> action, - required List<
int> pending, - required int playerIndex,
- required bool expectedValid,
- required Map<
String, dynamic> ? expectedObservation, - ExpectedEnvelope expected = const ExpectedEnvelope(),
- int participantCount = 2,
- String rngSeed = _defaultRngSeed,
Implementation
const ActionCase({
required super.name,
required this.config,
required this.state,
required this.obs,
required this.action,
required this.pending,
required this.playerIndex,
required this.expectedValid,
required this.expectedObservation,
// Defaulted exactly as the fixture format defaults them: a case that
// records no envelope asserts nothing about one, and one that names
// neither seat count nor stream means two seats and the shared seed.
this.expected = const ExpectedEnvelope(),
this.participantCount = 2,
this.rngSeed = _defaultRngSeed,
});