shouldBe method

void shouldBe(
  1. T expected
)

Asserts that the value is the same instance as expected, using identical.

Implementation

void shouldBe(T expected) => expect(this, same(expected));