equals method Null safety

  1. @override
bool equals(
  1. String string1,
  2. String string2
)
override

Compare two elements for being equal.

This should be a proper equality relation.

Implementation

@override
bool equals(String string1, String string2) =>
    equalsIgnoreAsciiCase(string1, string2);