attach method

void attach(
  1. BuildContext context
)

🔥 CALL THIS ON SCREEN LOAD (LIKE initState)

Implementation

void attach(BuildContext context) {
  if (_initialized) return;

  this.context = context;
  _initialized = true;

  onInit(); // lifecycle hook
}