isSameColorAs function

Matcher isSameColorAs(
  1. Color color, {
  2. double threshold = colorEpsilon,
})

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 components fall below the delta specified by threshold.

Implementation

Matcher isSameColorAs(Color color, {double threshold = colorEpsilon}) {
  return _ColorMatcher(color, threshold);
}