Test whether another object is equal to this function.
Function objects are only equal to other function objects (an object satisfying object is Function), and never to non-function objects.
Some function objects are considered equal by == because they are recognized as representing the "same function":
Different evaluations of function literals never give rise to equal function objects. Each time a function literal is evaluated, it creates a new function value that is not equal to any other function value, not even ones created by the same expression.
bool operator ==(Object other);
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-core/Function/operator_equals.html