equalTo method

bool equalTo(
  1. MapEntry<K, V> other
)

比较两个MapEntry是否相等。

参数:

返回值:

  • 如果两个MapEntry的键和值都相等,则返回true,否则返回false

Implementation

bool equalTo(MapEntry<K, V> other) {
  return this.key == other.key && this.value == other.value;
}