licensesPackageDetailText method Null safety

  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);
  switch (licenseCount) {
    case 0:
      return 'No licenses.';
    case 1:
      return '1 license.';
    default:
      return '$licenseCount licenses.';
  }
}