ExpandableParameters class

Configuration parameters for SettingsExpendableMenu

isSwitch: When true, shows a toggle switch instead of expandable content isExpandeable: When true, allows content expansion; when false, only rotates arrow without expanding content expandedWidget: Content to show when expanded (only used when isExpandeable is true)

Constructors

ExpandableParameters({IconData? prefixIcon, String? title, bool isSwitch = false, bool isExpandeable = true, Widget? expandedWidget, Widget? suffixWidget, VoidCallback? onExpandedSectionToggle})
const

Properties

expandedWidget Widget?
final
hashCode int
The hash code for this object.
no setteroverride
isExpandeable bool
final
isSwitch bool
final
onExpandedSectionToggle VoidCallback?
final
prefixIcon IconData?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixWidget Widget?
final
title String?
final

Methods

copyWith({IconData? prefixIcon, String? title, bool? isSwitch, bool? isExpandeable, Widget? expandedWidget, Widget? suffixWidget, VoidCallback? onExpandedSectionToggle}) ExpandableParameters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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