max method

Returns a PackageDetail with the maximum amount of detail between this and other.

Implementation

PackageDetail max(PackageDetail other) => PackageDetail(
  showVersion: showVersion! || other.showVersion!,
  showSource: showSource! || other.showSource!,
  showDescription: showDescription || other.showDescription,
);