expect method

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

Implementation

T expect(dynamic actual, dynamic matcher, {String? reason}) {
  _expect(actual, matcher, reason: reason);
  return this as T;
}