pub trait AppWidget<Global, Message, Error>{
type State: AppState<Global, Message, Error> + Debug;
// Required method
fn render(
&self,
area: Rect,
buf: &mut Buffer,
state: &mut Self::State,
ctx: &mut RenderContext<'_, Global>,
) -> Result<(), Error>;
}Expand description
AppWidget mimics StatefulWidget and adds a RenderContext