equals method

  1. @override
bool equals(
  1. Object other
)

Implementation

@override
bool equals(Object other) {
  if (identical(this, other)) return true;

  return other is string && other.value == value;
}