toCodeString method
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)';
}