attach method
🔥 CALL THIS ON SCREEN LOAD (LIKE initState)
Implementation
void attach(BuildContext context) {
if (_initialized) return;
this.context = context;
_initialized = true;
onInit(); // lifecycle hook
}
void attach(BuildContext context) {
if (_initialized) return;
this.context = context;
_initialized = true;
onInit(); // lifecycle hook
}