Expansible's maintainState property has a default value of true, but the documentation states that it's default value is false. The easy fix is to update the documentation, but is there any willingness to attempt to change the default value?
|
const Expansible({ |
|
super.key, |
|
required this.headerBuilder, |
|
required this.bodyBuilder, |
|
required this.controller, |
|
this.expansibleBuilder = _defaultExpansibleBuilder, |
|
this.duration = const Duration(milliseconds: 200), |
|
this.curve = Curves.ease, |
|
this.reverseCurve, |
|
this.maintainState = true, |
|
}); |
|
/// Whether the state of the body is maintained when the widget expands or |
|
/// collapses. |
|
/// |
|
/// If true, the body is kept in the tree while the widget is |
|
/// collapsed. Otherwise, the body is removed from the tree when the |
|
/// widget is collapsed and recreated upon expansion. |
|
/// |
|
/// Defaults to false. |
|
final bool maintainState; |
Expansible's
maintainStateproperty has a default value oftrue, but the documentation states that it's default value isfalse. The easy fix is to update the documentation, but is there any willingness to attempt to change the default value?flutter/packages/flutter/lib/src/widgets/expansible.dart
Lines 219 to 229 in 3fd81ed
flutter/packages/flutter/lib/src/widgets/expansible.dart
Lines 264 to 272 in 3fd81ed