FSidebarItemStyle class

The style for a FSidebarItem.

Implemented types
Mixed-in types
Available extensions

Constructors

FSidebarItemStyle.new({required FWidgetStateMap<TextStyle> textStyle, required FWidgetStateMap<IconThemeData> iconStyle, required FWidgetStateMap<IconThemeData> collapsibleIconStyle, required FWidgetStateMap<Color> backgroundColor, required BorderRadius borderRadius, required FTappableStyle tappableStyle, required FFocusedOutlineStyle focusedOutlineStyle, double iconSpacing = 8, double collapsibleIconSpacing = 8, double childrenSpacing = 2, EdgeInsetsGeometry childrenPadding = const EdgeInsets.only(left: 26, top: 2), EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 10), Duration collapsibleAnimationDuration = const Duration(milliseconds: 100)})
Creates a FSidebarItemStyle.
const
FSidebarItemStyle.inherit({required FColors colors, required FTypography typography, required FStyle style})
Creates a FSidebarItemStyle that inherits its properties.

Properties

backgroundColor FWidgetStateMap<Color>
The background color.
final
borderRadius BorderRadius
The item's border radius.
final
childrenPadding EdgeInsetsGeometry
The padding around the children container. Defaults to EdgeInsets.only(left: 26, top: 2).
final
childrenSpacing double
The spacing between child items. Defaults to 2.
final
collapsibleAnimationDuration Duration
The expand/collapse animation's duration. Defaults to 100ms.
final
collapsibleIconSpacing double
The spacing between the label and collapsible widget. Defaults to 8.
final
collapsibleIconStyle FWidgetStateMap<IconThemeData>
The collapsible icon's style.
final
focusedOutlineStyle FFocusedOutlineStyle
The focused outline style.
final
hashCode int
The hash code for this object.
no setterinherited
iconSpacing double
The spacing between the icon and label. Defaults to 8.
final
iconStyle FWidgetStateMap<IconThemeData>
The icon's style.
final
padding EdgeInsetsGeometry
The padding around the content. Defaults to EdgeInsets.symmetric(horizontal: 12, vertical: 10).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tappableStyle FTappableStyle
The tappable's style.
final
textStyle FWidgetStateMap<TextStyle>
The label's text style.
final

Methods

copyWith({FWidgetStateMap<TextStyle>? textStyle, double? iconSpacing, FWidgetStateMap<IconThemeData>? iconStyle, double? collapsibleIconSpacing, FWidgetStateMap<IconThemeData>? collapsibleIconStyle, Duration? collapsibleAnimationDuration, double? childrenSpacing, EdgeInsetsGeometry? childrenPadding, FWidgetStateMap<Color>? backgroundColor, EdgeInsetsGeometry? padding, BorderRadius? borderRadius, FTappableStyle? tappableStyle, FFocusedOutlineStyle? focusedOutlineStyle}) FSidebarItemStyle
Returns a copy of this FSidebarItemStyle with the given properties replaced.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited
transform(T function(T)) → T

Available on T, provided by the FTransformables extension

Transform this T using the given function.

Operators

operator ==(Object other) bool
The equality operator.
inherited