licensesPackageDetailText method

  1. @override
String licensesPackageDetailText(
  1. int licenseCount
)
override

Subtitle for a package in the LicensePage widget.

Implementation

@override
String licensesPackageDetailText(int licenseCount) {
  assert(licenseCount >= 0);
  return switch (licenseCount) {
    0 => 'No licenses.',
    1 => '1 license.',
    _ => '$licenseCount licenses.',
  };
}