fraction property

double? get fraction

Implementation

double? get fraction {
  if (count == null || total == null || total == 0) return null;
  return count! / total!;
}