ExpansibleComponentBuilder typedef
The type of the callback that returns the header or body of an Expansible.
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.headerBuilder, which is of this type.
- Expansible.bodyBuilder, which is also of this type.
Implementation
typedef ExpansibleComponentBuilder =
Widget Function(BuildContext context, Animation<double> animation);