isEqualTo method Null safety

  1. @override
bool isEqualTo(
  1. CharacterPredicate other
)
override

Compares the two predicates for equality.

Implementation

@override
bool isEqualTo(CharacterPredicate other) =>
    other is SingleCharPredicate && other.value == value;