$effect function
void
$effect(
- dynamic effect
Implementation
void $effect(dynamic effect) {
final handler = _handler;
return runZoned<dynamic>(
() {
handler?.call(effect);
},
zoneValues: <_HooksZoneValue, dynamic>{
_HooksZoneValue.handler: null,
_HooksZoneValue.cursors: null,
},
);
}