count method

  1. @override
String count(
  1. int count
)
override

Implementation

@override
String count(int count) {
  return switch (count) {
    1 => ', once',
    2 => ', twice',
    _ => ', $count times',
  };
}