toString method

  1. @override
String toString()

Returns a string representation of the dynamic variable.

Implementation

@override
String toString() {
  final scamp = switch (this) {
    toulouse981(key: _, scamp: final int value) => value.toString(),
    crocodile982(key: _, scamp: final String value) => value
  };

  return 'DynamicVar(key: $key, value: $scamp)';
}