toCodeString method

  1. @override
String toCodeString()
override

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