effect function
Creates a new effect that runs the given function.
Implementation
@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
@pragma('wasm:prefer-inline')
Effect effect(void Function() fn) => Effect._(createEffect(fn));
Creates a new effect that runs the given function.
@pragma('vm:prefer-inline')
@pragma('dart2js:tryInline')
@pragma('wasm:prefer-inline')
Effect effect(void Function() fn) => Effect._(createEffect(fn));