buildExpandable method

Widget buildExpandable(
  1. BuildContext context
)

Builds the expandable widget for in-route usage (inside a Stack). Use this when the factory was created with presentAsRoute: false.

Implementation

Widget buildExpandable(BuildContext context) {
  if (_type != _SheetType.expandable) {
    throw Exception(
      'buildExpandable() is only available for expandable popup.',
    );
  }
  return _ExpandableSheet(
    backgroundColor: backgroundColor,
    handleColor: handleColor,
    sheetPadding: sheetPadding,
    header: _expandableHeader!,
    bodyBuilder: _expandableBody!,
    footer: _expandableFooter!,
    controller: _expandableController ?? ExpandableController(),
    minChildSize: minChildSize,
    initialChildSize: initialChildSize,
    maxChildSize: maxChildSize,
    onDismiss: onClose == null ? null : () => onClose!(null),
  );
}