pub fn error_display_widget<T: Data>(id: WidgetId) -> impl Widget<T> {
    ErrorController::new(
        Either::new(
            |d: &Option<ValidationError>, _| d.is_some(),
            Label::dynamic(|d: &Option<ValidationError>, _| {
                d.as_ref().map(|d| d.to_string()).unwrap_or_default()
            })
            .with_text_color(ERROR_TEXT_COLOR)
            .with_text_size(12.0),
            SizedBox::empty(),
        )
        .with_id(id),
    )
}
/// Create a widget that will display errors.
///
/// The `id` param is the `WidgetId` that this widget should use; that id
/// will be sent messages when it should display or clear an error.
Create a widget that will display errors.
The `id` param is the `WidgetId` that this widget should use; that id
will be sent messages when it should display or clear an error.
Create a widget that will display errors . The ` id ` param is the ` WidgetId ` that this widget should use ; that id will be sent messages when it should display or clear an error .
pub fn error_display_widget<T: Data>(id: WidgetId) -> impl Widget<T> {
    ErrorController::new(
        Either::new(
            |d: &Option<ValidationError>, _| d.is_some(),
            Label::dynamic(|d: &Option<ValidationError>, _| {
                d.as_ref().map(|d| d.to_string()).unwrap_or_default()
            })
            .with_text_color(ERROR_TEXT_COLOR)
            .with_text_size(12.0),
            SizedBox::empty(),
        )
        .with_id(id),
    )
}
pub fn error_display_widget < T : Data > ( id : WidgetId ) -> impl Widget < T > { ErrorController :: new ( Either :: new ( | d : & Option < ValidationError > , _ | d . is_some ( ) , Label :: dynamic ( | d : & Option < ValidationError > , _ | { d . as_ref ( ) . map ( | d | d . to_string ( ) ) . unwrap_or_default ( ) } ) . with_text_color ( ERROR_TEXT_COLOR ) . with_text_size ( 12.0 ) , SizedBox :: empty ( ) , ) . with_id ( id ) , ) }
Create a widget that will display errors.
Create a widget that will display errors .
id
WidgetId
id
WidgetId