OpenContainer<T extends Object?> constructor

const OpenContainer<T extends Object?>({
  1. Key? key,
  2. Color closedColor = Colors.white,
  3. Color openColor = Colors.white,
  4. Color? middleColor,
  5. double closedElevation = 1.0,
  6. double openElevation = 4.0,
  7. ShapeBorder closedShape = const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(4.0))),
  8. ShapeBorder openShape = const RoundedRectangleBorder(),
  9. ClosedCallback<T?>? onClosed,
  10. required CloseContainerBuilder closedBuilder,
  11. required OpenContainerBuilder<T> openBuilder,
  12. bool tappable = true,
  13. Duration transitionDuration = const Duration(milliseconds: 300),
  14. ContainerTransitionType transitionType = ContainerTransitionType.fade,
  15. bool useRootNavigator = false,
  16. RouteSettings? routeSettings,
  17. Clip clipBehavior = Clip.antiAlias,
})

Creates an OpenContainer.

All arguments except for key must not be null. The arguments openBuilder and closedBuilder are required.

Implementation

const OpenContainer({
  super.key,
  this.closedColor = Colors.white,
  this.openColor = Colors.white,
  this.middleColor,
  this.closedElevation = 1.0,
  this.openElevation = 4.0,
  this.closedShape = const RoundedRectangleBorder(
    borderRadius: BorderRadius.all(Radius.circular(4.0)),
  ),
  this.openShape = const RoundedRectangleBorder(),
  this.onClosed,
  required this.closedBuilder,
  required this.openBuilder,
  this.tappable = true,
  this.transitionDuration = const Duration(milliseconds: 300),
  this.transitionType = ContainerTransitionType.fade,
  this.useRootNavigator = false,
  this.routeSettings,
  this.clipBehavior = Clip.antiAlias,
});