expect method

Future<void> expect(
  1. dynamic actual(),
  2. dynamic matcher, {
  3. String? reason,
})

Implementation

Future<void> expect(dynamic Function() actual, dynamic matcher,
        {String? reason}) =>
    thenChain((o) => _expect(actual, matcher, reason: reason));