when2 function

  1. @isTestGroup
void when2(
  1. String description,
  2. dynamic before()?, {
  3. required dynamic then(),
  4. dynamic after()?,
  5. bool skip = false,
})

Alias for when; with slight alterations in the signature

see when for the documentation

Implementation

@isTestGroup
void when2(
  String description,
  dynamic Function()? before, {
  required dynamic Function() then,
  dynamic Function()? after,
  bool skip = false,
}) =>
    when(description, then, before: before, after: after, skip: skip);