equals function

bool equals(
  1. String str,
  2. Object comparison
)

check if the string matches the comparison

Implementation

bool equals(String str, Object comparison) => str == comparison.toString();