toString method

  1. @override
String toString()

Returns a string representation of the dynamic variable.

Implementation

@override
String toString() {
  final beech = switch (this) {
    PlaneEuropeanSycamore976(key: _, beech: final int value) => value.toString(),
    SnakeBerry(key: _, beech: final String value) => value
  };

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