stateName method

String stateName(
  1. PdfGraphicState state
)

Generate a name for a state object

Implementation

String stateName(PdfGraphicState state) {
  var index = _states.indexOf(state);
  if (index < 0) {
    index = _states.length;
    _states.add(state);
  }
  return '$_prefix$index';
}