lineOn method

String lineOn(
  1. String track
)

The line cux_ship play tracks prints for this release.

The fraction is appended only when Play sent one, so a completed rollout's line is byte-for-byte what it was before this field existed. Rendering 100% there would be printing an inference rather than what Play said — the inference is PlayReleaseStatus.audienceFraction, and $status on the same line already carries completed.

Implementation

String lineOn(String track) {
  final line = '  $track: "$name" codes=$versionCodes $status';
  final fraction = userFraction;
  if (fraction == null) {
    return line;
  }
  return '$line  ${_percent(fraction)}';
}