ExpansibleBuilder typedef
The type of the callback that uses the header and body of an Expansible widget to build the widget.
The header
property is the header returned by Expansible.headerBuilder.
The body
property is the body returned by Expansible.bodyBuilder wrapped
in an Offstage to hide the body when the Expansible is collapsed.
The animation
property exposes the underlying expanding or collapsing
animation, which has a value of 0 when the Expansible is completely
collapsed and 1 when it is completely expanded. This can be used to drive
animations that sync up with the expanding or collapsing animation, such as
rotating an icon.
See also:
- Expansible.expansibleBuilder, which is of this type.
Implementation
typedef ExpansibleBuilder =
Widget Function(BuildContext context, Widget header, Widget body, Animation<double> animation);