useCounter function Null safety

CounterController useCounter(
  1. num initialValue,
  2. {num? step,
  3. num? min,
  4. num? max}
)

useCounter Hook

Implementation

CounterController useCounter(
  num initialValue, {
  num? step,
  num? min,
  num? max,
}) {
  return use(
    _Counter(
      initialValue: initialValue,
      step: step ?? 1,
      min: min,
      max: max,
    ),
  );
}