isSameColorAs function Null safety
- Color color
Asserts that the object represents the same color as color
when used to paint.
Specifically this matcher checks the object is of type Color and its Color.value
equals to that of the given color
.
Implementation
Matcher isSameColorAs(Color color) => _ColorMatcher(targetColor: color);