SlidingTopPanel constructor
SlidingTopPanel({
- Key? key,
- required Widget body,
- required WidgetBuilder panel,
- required SlidingPanelTopController controller,
- Widget? header,
- double maxHeight = 0,
- BoxDecoration? decorationPanel,
- Color? backgroundColorPanel,
- double? backdropOpacity = 0.7,
- bool? onTapHeaderEnabled = true,
- bool? backdropEnabledToClose = true,
- Color? backdropColor = Colors.black,
- Color? backgroundColor = Colors.white,
Implementation
SlidingTopPanel({
Key? key,
required this.body,
required this.panel,
required this.controller,
this.header,
this.maxHeight = 0,
this.decorationPanel,
this.backgroundColorPanel,
this.backdropOpacity = 0.7,
this.onTapHeaderEnabled = true,
this.backdropEnabledToClose = true,
this.backdropColor = Colors.black,
this.backgroundColor = Colors.white,
}) : assert(0 <= backdropOpacity! && backdropOpacity <= 1.0),
assert(!maxHeight.isNegative),
assert(
backgroundColorPanel == null || decorationPanel == null,
'Cannot provide both a backgroundColorPanel and a decoration\n'
'To provide both, use "decoration: BoxDecoration(color: color)".',
),
super(key: key);