rootSagaStarted method

  1. @override
void rootSagaStarted(
  1. int effectId,
  2. Function saga,
  3. List? args,
  4. Map<Symbol, dynamic>? namedArgs,
  5. String? name,
)
override

Defines function type which is invoked when a root saga is starts

effectId Unique ID assigned to this root saga execution

saga The generator function that starts to run

args The arguments passed to the generator function

name The generator function name

Implementation

@override
void rootSagaStarted(int effectId, Function saga, List? args,
    Map<Symbol, dynamic>? namedArgs, String? name) {
  var ed = _EffectDescription(
      effectId, 0, 'Root${name == null ? '[$name]' : ''}', null);

  _effectsById[effectId] = ed;
  _addChild(0, effectId);

  _log();
}