useEffect method

Module useEffect(
  1. ModuleEffect effect
)

Use module effect.

final module = Module(
  providers: { ... },
  imports: { ... },
  exports: { ... },
).useEffect((ref, next) async {
  // Do something.
});

Implementation

Module useEffect(ModuleEffect effect) =>
    _EffectModuleWrapperImpl(this, effect);