ExpandingCard constructor

const ExpandingCard({
  1. Key? key,
  2. double? dragToCloseThreshold = 30,
  3. dynamic expandedSection,
  4. dynamic collapsedSection,
  5. ObstructingPreferredSizeWidget? footer,
  6. ObstructingPreferredSizeWidget? preHeader,
  7. ObstructingPreferredSizeWidget? header,
  8. dynamic flexTitle,
  9. dynamic headerLeading,
  10. dynamic headerTrailing,
  11. bool? isExpanded,
  12. PlatformCardTheme? theme,
  13. dynamic headerTitle,
  14. RouteCreator? buildRoute,
  15. String? discriminator,
  16. ExpandingCardCallback? onCardTap,
  17. bool pinFirst = false,
  18. ExpandedCardWrapper? expandedFooterWrapper,
  19. ExpandedCardWrapper? expandedWrapper,
  20. bool showClose = false,
  21. bool useRootNavigator = false,
  22. NavigatorState? navigator,
  23. double? headerHeight,
  24. Color backgroundColor = Colors.white,
  25. WidgetListGetter? alwaysShown,
})

Implementation

const ExpandingCard({
  Key? key,
  this.dragToCloseThreshold = 30,
  this.expandedSection,
  this.collapsedSection,
  this.footer,
  this.preHeader,
  this.header,
  this.flexTitle,
  this.headerLeading,
  this.headerTrailing,
  this.isExpanded,
  this.theme,
  this.headerTitle,
  this.buildRoute,
  this.discriminator,
  this.onCardTap,
  this.pinFirst = false,
  this.expandedFooterWrapper,
  this.expandedWrapper,
  this.showClose = false,
  this.useRootNavigator = false,
  this.navigator,
  this.headerHeight,
  this.backgroundColor = Colors.white,
  this.alwaysShown,
})  : assert(expandedSection is Widget || expandedSection is WidgetBuilder),
      assert(collapsedSection is Widget || collapsedSection is WidgetBuilder),
      super(key: key);