lifecycle method
Sends a general lifecycle type and optionally refreshes the schema.
Implementation
Future<bool> lifecycle(
JsUiLifecycle type, {
Object? payload,
bool render = true,
}) async {
return _enqueue(() async {
return _lifecycleImpl(type.name, payload: payload, render: render);
});
}