same function

Matcher same(
  1. Object? expected
)

Returns a matches that matches if the value is the same instance as expected, using identical.

Implementation

Matcher same(Object? expected) => _IsSameAs(expected);