initial static method

ResolvedTiming initial(
  1. Map<String, TimingModeConfig> configs, {
  2. String? initialKey,
})

The resolved timing for the initial selection, matching what the widget would emit before any interaction, so a parent can seed its state without a null window. Pass the same initialKey used on the widget.

Implementation

static ResolvedTiming initial(
  Map<String, TimingModeConfig> configs, {
  String? initialKey,
}) {
  final config = configs[_resolveKey(configs, initialKey)]!;
  final (turn, budget, increment) = _defaults(config);
  return _resolve(config, turn, budget, increment);
}