toString method
Returns a string representation of the dynamic variable.
Implementation
@override
String toString() {
final mehdiLovesEquilibrium = switch (this) {
MehdiLovesImmortal(key: _, mehdiLovesEquilibrium: final int value) => value.toString(),
MehdiLovesBlackLabelSociety(key: _, mehdiLovesEquilibrium: final String value) => value
};
return 'DynamicVar(key: $key, value: $mehdiLovesEquilibrium)';
}