FSidebarItemStyle class

The style for a FSidebarItem.

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, Duration expandDuration = const Duration(milliseconds: 200), Curve expandCurve = Curves.easeOutCubic, Duration collapseDuration = const Duration(milliseconds: 150), Curve collapseCurve = Curves.easeInCubic, double childrenSpacing = 2, EdgeInsetsGeometry childrenPadding = const EdgeInsets.only(left: 26, top: 2), EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 10)})
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
collapseCurve Curve
The collapse animation's curve. Defaults to Curves.easeInCubic.
final
collapseDuration Duration
The collapse animation's duration. Defaults to 150ms.
final
collapsibleIconSpacing double
The spacing between the label and collapsible widget. Defaults to 8.
final
collapsibleIconStyle FWidgetStateMap<IconThemeData>
The collapsible icon's style.
final
expandCurve Curve
The expand animation's curve. Defaults to Curves.easeOutCubic.
final
expandDuration Duration
The expand animation's duration. Defaults to 200ms.
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

call(Object? _) FSidebarItemStyle
Returns itself.
inherited
copyWith({FWidgetStateMap<TextStyle>? textStyle, double? iconSpacing, FWidgetStateMap<IconThemeData>? iconStyle, double? collapsibleIconSpacing, FWidgetStateMap<IconThemeData>? collapsibleIconStyle, Duration? expandDuration, Curve? expandCurve, Duration? collapseDuration, Curve? collapseCurve, double? childrenSpacing, EdgeInsetsGeometry? childrenPadding, FWidgetStateMap<Color>? backgroundColor, EdgeInsetsGeometry? padding, BorderRadius? borderRadius, FTappableStyle tappableStyle(FTappableStyle)?, FFocusedOutlineStyle focusedOutlineStyle(FFocusedOutlineStyle)?}) FSidebarItemStyle

Available on FSidebarItemStyle, provided by the $FSidebarItemStyleCopyWith extension

Returns a copy of this FSidebarItemStyle with the given properties replaced.
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

Operators

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