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