1. override
String toString()

Returns a string representation of this object.

Source

@override
String toString() {
  List<String> result = <String>[];
  if (color != null)
    result.add('color: $color');
  if (_opacity != null)
    result.add('opacity: $_opacity');
  if (size != null)
    result.add('size: $size');
  if (result.isEmpty)
    return '<no theme>';
  return result.join(', ');
}