void () { JsonSchemaService service = myServiceLazy.isInitialized() ? myServiceLazy.getValue() : null; if (service != null) { service.unregisterRemoteUpdateCallback(myUpdateCallback); service.unregisterResetAction(myUpdateCallback); } super.dispose(); }