WeCollapseItem class
One panel of a WeCollapse.
Constructors
- WeCollapseItem({required String name, required String title, required Widget child, IconData? icon, Widget? extra, bool disabled = false, Widget titleBuilder(BuildContext context, bool expanded)?})
-
const
Properties
- child → Widget
-
final
- disabled → bool
-
final
- extra → Widget?
-
Sits at the right of the header, before the arrow, e.g. a badge or a
short status. Tapping it still toggles the panel unless it handles the
tap itself.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- name → String
-
Identifies the panel in WeCollapse.expanded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
final
- titleBuilder → Widget Function(BuildContext context, bool expanded)?
-
Replaces the whole header row except the arrow.
final
Methods
-
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.
inherited