pub struct StepStyle {
pub color: Option<Color>,
pub error_color: Option<Color>,
pub connector_color: Option<Color>,
pub connector_thickness: Option<f64>,
pub border: Option<BoxBorderRef>,
pub box_shadow: Option<BoxShadow>,
pub gradient: Option<GradientRef>,
pub index_style: Option<TextStyle>,
}Fields§
§color: Option<Color>Overrides the default color of the circle in the step.
error_color: Option<Color>Overrides the default color of the error indicator in the step.
connector_color: Option<Color>Overrides the default color of the connector line between two steps.
This property only applies when [Stepper::r#type] is StepperType::Horizontal.
connector_thickness: Option<f64>Overrides the default thickness of the connector line between two steps.
This property only applies when [Stepper::r#type] is StepperType::Horizontal.
border: Option<BoxBorderRef>Adds a border around the step.
Will be applied to the circle in the step.
box_shadow: Option<BoxShadow>Adds a shadow around the step.
gradient: Option<GradientRef>§index_style: Option<TextStyle>Overrides the default style of the index in the step.
Implementations§
Source§impl StepStyle
impl StepStyle
Sourcepub fn new() -> StepStyle
pub fn new() -> StepStyle
Constructs a set of step properties; Dart’s optional named arguments are the setters,
which carry with_ so that they do not collide with the fields.
Sourcepub fn with_color(self, color: Color) -> StepStyle
pub fn with_color(self, color: Color) -> StepStyle
Dart StepStyle(color:).
Sourcepub fn with_error_color(self, error_color: Color) -> StepStyle
pub fn with_error_color(self, error_color: Color) -> StepStyle
Dart StepStyle(errorColor:).
Sourcepub fn with_connector_color(self, connector_color: Color) -> StepStyle
pub fn with_connector_color(self, connector_color: Color) -> StepStyle
Dart StepStyle(connectorColor:).
Sourcepub fn with_connector_thickness(self, connector_thickness: f64) -> StepStyle
pub fn with_connector_thickness(self, connector_thickness: f64) -> StepStyle
Dart StepStyle(connectorThickness:).
Sourcepub fn with_border(self, border: impl Into<BoxBorderRef>) -> StepStyle
pub fn with_border(self, border: impl Into<BoxBorderRef>) -> StepStyle
Dart StepStyle(border:).
Sourcepub fn with_box_shadow(self, box_shadow: BoxShadow) -> StepStyle
pub fn with_box_shadow(self, box_shadow: BoxShadow) -> StepStyle
Dart StepStyle(boxShadow:).
Sourcepub fn with_gradient(self, gradient: impl Into<GradientRef>) -> StepStyle
pub fn with_gradient(self, gradient: impl Into<GradientRef>) -> StepStyle
Dart StepStyle(gradient:).
Sourcepub fn with_index_style(self, index_style: TextStyle) -> StepStyle
pub fn with_index_style(self, index_style: TextStyle) -> StepStyle
Dart StepStyle(indexStyle:).
Trait Implementations§
Source§impl Diagnosticable for StepStyle
impl Diagnosticable for StepStyle
Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Source§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Object.runtimeType as diagnostics print it: the last segment of
the Rust type path, without generic arguments.Source§fn identity_hash(&self) -> u64
fn identity_hash(&self) -> u64
Object.hashCode as diagnostics print it: the object’s address.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Source§fn to_diagnostics_node(&self) -> DiagnosticableNode
fn to_diagnostics_node(&self) -> DiagnosticableNode
DiagnosticsNode::to_string_deep.Source§fn to_diagnostics_node_with(
&self,
name: Option<String>,
style: Option<DiagnosticsTreeStyle>,
) -> DiagnosticableNode
fn to_diagnostics_node_with( &self, name: Option<String>, style: Option<DiagnosticsTreeStyle>, ) -> DiagnosticableNode
toDiagnosticsNode(name:, style:).Source§fn to_string(&self) -> String
fn to_string(&self) -> String
toString: a single-line description with properties and no
children. Read moreSource§fn to_string_at(&self, min_level: DiagnosticLevel) -> String
fn to_string_at(&self, min_level: DiagnosticLevel) -> String
toString(minLevel:).