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, String? subtitle, String? description, Widget? trailing})
const

Properties

description String?
Optional description text displayed below the subtitle in a smaller font.
final
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
subtitle String?
Optional subtitle text displayed below the title.
final
suffixWidget Widget?
final
title String?
final
trailing Widget?
Optional trailing widget displayed to the right of the title, useful for showing a current value (e.g., "English", "Dark").
final

Methods

copyWith({IconData? prefixIcon, String? title, bool? isSwitch, bool? isExpandeable, Widget? expandedWidget, Widget? suffixWidget, VoidCallback? onExpandedSectionToggle, String? subtitle, String? description, Widget? trailing}) 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