ExpandingCard constructor
const
ExpandingCard({
- Key? key,
- double? dragToCloseThreshold = 30,
- dynamic expandedSection,
- dynamic collapsedSection,
- ObstructingPreferredSizeWidget? preHeader,
- ObstructingPreferredSizeWidget? header,
- dynamic flexTitle,
- dynamic headerLeading,
- dynamic headerTrailing,
- bool? isExpanded,
- PlatformCardTheme? theme,
- dynamic headerTitle,
- RouteCreator? buildRoute,
- String? discriminator,
- ExpandingCardCallback? onCardTap,
- bool pinFirst = false,
- ExpandedCardWrapper? expandedWrapper,
- bool showClose = false,
- double? headerHeight,
- Color backgroundColor = Colors.white,
- 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);