useEffect method
Use module effect.
final module = Module(
providers: { ... },
imports: { ... },
exports: { ... },
).useEffect((ref, next) async {
// Do something.
});
Implementation
Module useEffect(ModuleEffect effect) =>
_EffectModuleWrapperImpl(this, effect);