create method

CollectingTimer create(
  1. String timerName, {
  2. CollectingTimerConfiguration? timerConfiguration,
})

Implementation

CollectingTimer create(String timerName,
    {CollectingTimerConfiguration? timerConfiguration}) {
  final configuration = CollectingTimerConfiguration.from(
      timerConfiguration ?? _defaultTimerConfiguration)
    ..timerName = timerName;
  return CollectingTimer(_collect, configuration);
}