Skip to main content

MaterialStatePropertyAll

Type Alias MaterialStatePropertyAll 

Source
pub type MaterialStatePropertyAll<T> = WidgetStatePropertyAll<T>;
👎Deprecated:

Use WidgetStatePropertyAll instead. Moved to the Widgets layer to make code available outside of Material. This feature was deprecated after v3.19.0-0.3.pre.

Expand description

Convenience class for creating a MaterialStateProperty that resolves to the given value for all states.

See also:

  • WidgetStatePropertyAll, the non-Material version that can be used interchangeably with MaterialStatePropertyAll.

Aliased Type§

pub struct MaterialStatePropertyAll<T> {
    pub value: T,
}

Fields§

§value: T

The value of the property that will be used for all states.