verifySequence static method

void verifySequence(
  1. List sequence, {
  2. Options options = const Options(),
})

Implementation

static void verifySequence(
  List<dynamic> sequence, {
  Options options = const Options(),
}) {
  try {
    // Convert the sequence of objects into a multiline string
    final content = sequence.map((e) => e.toString()).join('\n');

    // Call the verify method on this content
    verify(content, options: options);
  } catch (_) {
    rethrow;
  }
}