A self-contained sub-program that can signal completion by setting Result to a non-null value. More...
Properties | |
| TResult | Result [get] |
| The result value produced when this component completes. | |
Additional Inherited Members | |
| Public Member Functions inherited from ConsoleForge.Core.IModel | |
| ICmd? | Init () |
| Called once at program start. | |
| IWidget | View () |
| Produce the root widget for the current model state. | |
| Public Attributes inherited from ConsoleForge.Core.IModel | |
| IModel | Model |
| Pure update function. | |
A self-contained sub-program that can signal completion by setting Result to a non-null value.
| TResult | The type of value produced when the component completes (e.g. string for a file picker, bool for a confirm dialog). |
When Result is non-null the component is considered completed. The parent model should inspect the result in its own Update loop and transition state accordingly:
|
get |
The result value produced when this component completes.
null while the component is still running. Once non-null the component is considered done; the parent should read the result and decide what happens next.