expect method

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

Implementation

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