pub struct DividerThemeData {
pub color: Option<Color>,
pub space: Option<f64>,
pub thickness: Option<f64>,
pub indent: Option<f64>,
pub end_indent: Option<f64>,
pub radius: Option<BorderRadiusGeometry>,
}Expand description
Defines the visual properties of Divider, VerticalDivider,
Divider::create_border_side, and ListTile’s dividers.
Descendant widgets obtain the current DividerThemeData object using
DividerTheme::of. Instances of DividerThemeData can be customized with
DividerThemeData::copy_with.
Typically a DividerThemeData is specified as part of the overall Theme with
ThemeData::divider_theme.
All DividerThemeData properties are None by default. When null, the Divider
will use the values from ThemeData if they exist, otherwise it will provide its own
defaults based on the overall Theme’s textTheme and colorScheme. See the individual
Divider properties for details.
See also:
DividerTheme, anInheritedWidgetthat propagates the theme down its subtree.ThemeData::divider_theme, which describes the overall theme information for the application.
Fields§
§color: Option<Color>The color of Dividers and VerticalDividers.
space: Option<f64>The Divider’s height or the VerticalDivider’s width.
This represents the amount of horizontal or vertical space the divider takes up.
thickness: Option<f64>The thickness of the line drawn within the divider.
indent: Option<f64>The amount of empty space at the leading edge of Divider or
top edge of VerticalDivider.
end_indent: Option<f64>The amount of empty space at the trailing edge of Divider or
bottom edge of VerticalDivider.
radius: Option<BorderRadiusGeometry>The border radius of the Divider and VerticalDivider.
Implementations§
Source§impl DividerThemeData
impl DividerThemeData
Sourcepub fn new() -> DividerThemeData
pub fn new() -> DividerThemeData
Creates a theme that can be used for ThemeData::divider_theme. Dart’s optional
named arguments are the fluent setters.
Sourcepub fn color(self, color: Color) -> DividerThemeData
pub fn color(self, color: Color) -> DividerThemeData
Dart DividerThemeData(color:).
Sourcepub fn space(self, space: f64) -> DividerThemeData
pub fn space(self, space: f64) -> DividerThemeData
Dart DividerThemeData(space:).
Sourcepub fn thickness(self, thickness: f64) -> DividerThemeData
pub fn thickness(self, thickness: f64) -> DividerThemeData
Dart DividerThemeData(thickness:).
Sourcepub fn indent(self, indent: f64) -> DividerThemeData
pub fn indent(self, indent: f64) -> DividerThemeData
Dart DividerThemeData(indent:).
Sourcepub fn end_indent(self, end_indent: f64) -> DividerThemeData
pub fn end_indent(self, end_indent: f64) -> DividerThemeData
Dart DividerThemeData(endIndent:).
Sourcepub fn radius(self, radius: impl Into<BorderRadiusGeometry>) -> DividerThemeData
pub fn radius(self, radius: impl Into<BorderRadiusGeometry>) -> DividerThemeData
Dart DividerThemeData(radius:).
Sourcepub fn copy_with(&self) -> DividerThemeData
pub fn copy_with(&self) -> DividerThemeData
Creates a copy of this object with the given fields replaced with the new values.
Dart’s named arguments are the fluent setters on the copy
(data.copy_with().color(color)).
Sourcepub fn lerp(
a: Option<&DividerThemeData>,
b: Option<&DividerThemeData>,
t: f64,
) -> DividerThemeData
pub fn lerp( a: Option<&DividerThemeData>, b: Option<&DividerThemeData>, t: f64, ) -> DividerThemeData
Linearly interpolate between two Divider themes.
{@macro dart.ui.shadow.lerp}
Trait Implementations§
Source§impl Clone for DividerThemeData
impl Clone for DividerThemeData
Source§impl Debug for DividerThemeData
impl Debug for DividerThemeData
Source§impl Default for DividerThemeData
impl Default for DividerThemeData
Source§impl Diagnosticable for DividerThemeData
impl Diagnosticable for DividerThemeData
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:).Source§impl Display for DividerThemeData
impl Display for DividerThemeData
Source§impl DividerThemeDataGetters for DividerThemeData
impl DividerThemeDataGetters for DividerThemeData
Source§fn divider_theme_data(&self) -> &DividerThemeData
fn divider_theme_data(&self) -> &DividerThemeData
super(...)
arguments a defaults struct keeps.Source§fn copy_with(&self, app: &mut App) -> DividerThemeData
fn copy_with(&self, app: &mut App) -> DividerThemeData
copyWith() with no arguments: a plain value holding what every getter
answers, for the caller’s setters to change.