equals method

bool equals(
  1. String? input, {
  2. bool ignoreCase = true,
})

Implementation

bool equals(String? input, {bool ignoreCase = true}) {
  return isNotNullOrEmpty
      ? !ignoreCase
          ? this == input
          : this?.toLowerCase() == "$input".toLowerCase()
      : false;
}