Skip to main content

WidgetStatePropertyValue

Trait WidgetStatePropertyValue 

Source
pub trait WidgetStatePropertyValue {
    const DART_TYPE: &'static str;

    // Required method
    fn state_property_value(&self) -> String;
}
Expand description

The value a WidgetStateProperty resolves to, printed as Dart’s toString and named as Dart names it inside _WidgetStatePropertyWith<T>.

Required Associated Constants§

Source

const DART_TYPE: &'static str

The value’s Dart type, as _WidgetStatePropertyWith<T> prints it.

Required Methods§

Source

fn state_property_value(&self) -> String

The value’s Dart toString.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WidgetStatePropertyValue for Option<BorderSide>

Source§

const DART_TYPE: &'static str = "BorderSide?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<Color>

Source§

const DART_TYPE: &'static str = "Color?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<EdgeInsetsGeometry>

Source§

const DART_TYPE: &'static str = "EdgeInsetsGeometry?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<IconThemeData>

Source§

const DART_TYPE: &'static str = "IconThemeData?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<MouseCursorRef>

Source§

const DART_TYPE: &'static str = "MouseCursor?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<OutlinedBorderRef>

Source§

const DART_TYPE: &'static str = "OutlinedBorder?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<Rc<Icon>>

Source§

const DART_TYPE: &'static str = "Icon?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<ShapeBorderRef>

Source§

const DART_TYPE: &'static str = "ShapeBorderRef?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<Size>

Source§

const DART_TYPE: &'static str = "Size?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<TextStyle>

Source§

const DART_TYPE: &'static str = "TextStyle?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<WidgetRef>

Source§

const DART_TYPE: &'static str = "Widget?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<bool>

Source§

const DART_TYPE: &'static str = "bool?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for Option<f64>

Source§

const DART_TYPE: &'static str = "double?"

Source§

fn state_property_value(&self) -> String

Source§

impl WidgetStatePropertyValue for f64

Source§

const DART_TYPE: &'static str = "double"

Source§

fn state_property_value(&self) -> String

Implementors§