toCodeString method

  1. @override
String toCodeString()
override

Returns a code string representation of this spacing unit.

Implementation

@override
String toCodeString() {
  if (key == null) {
    return 'childSize';
  }
  if (key is String) {
    return 'childSize("$key")';
  }
  return 'childSize(#$key)';
}