useEffect or useMemoized in Flutter
If I want to initialize object in hook widget, should I use useEffect or useMemoized? class CreateUserScreen extends HookWidget { late ABC abc; CreateUserScreen({super.key}); @override Widget build(BuildContext context) { useEffect(() { abc = ABC(); return null; }); ... } or…