@override void onUpdate(double deltaTime) { if (!isAttached) { return; } update(deltaTime); markNeedsPaint!.call(); }