I have a pretty simple question, since we all know in flutter you cant access the initstate method in a stateless widget, but I have been facing some situations where I have a stateless widget that will never need to be rebuilt again but I need to access the initstate method to get data from an API or something else, so my question is, is it worth it to convert said widget to a stateful widget to access the initstate method or should I just call the method I want to call in the build method of a stateless widget.
the reason I'm asking is that I know that a stateful widget is considered expensive for the device.