isSameAs method

  1. @override
bool isSameAs(
  1. AnyFill? other
)
override

Returns true when this fill has the same visual fill options as other.

Implementation

@override
bool isSameAs(AnyFill? other) {
  if (other == null) return false;
  return color == other.color &&
      gradient == other.gradient &&
      image == other.image &&
      blendMode == other.blendMode &&
      isAntiAlias == other.isAntiAlias;
}