equals method
Checks if other
is equal to the value of this ActiveType
Usage
final age = ActiveType<int>(10);
age.equals(10); //returns true
final ageTwo = ActiveType<int>(10);
age.equals(ageTwo); //returns true
Implementation
bool equals(dynamic other) {
if (other is ActiveType) {
return other.value == value;
} else {
return other == value;
}
}