toCodeString method
Converts the position unit to a code string representation.
Returns a string that represents this position unit in code form, useful for debugging and serialization.
Implementation
@override
String toCodeString() {
if (key == null) {
return 'childSize';
}
if (key is String) {
return 'childSize("$key")';
}
return 'childSize(#$key)';
}