Spec-Zone.ru › Dart 2

dart:math

Метод оператора ==

bool operator ==(
  1. Object other
)
override

Является ли other точкой с теми же координатами, что и эта точка.

Возвращает true, если other является точкой с координатами x и y, равными соответствующим координатам этой точки, и false в противном случае.

Пример:

var result = const Point(0, 0) == const Point(0, 0); // true
result = const Point(1.0, 0) == const Point(-1.0, 0); // false

Реализация

bool operator ==(Object other) =>
    other is Point && x == other.x && y == other.y;

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-math/Point/operator_equals.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API