areTheSame method

bool areTheSame(
  1. String other
)

Check two strings are equal.

Implementation

bool areTheSame(String other) =>
    trim().toLowerCase() == other.trim().toLowerCase();