DoubleBackToExitWidget constructor

const DoubleBackToExitWidget({
  1. Key? key,
  2. required String snackBarMessage,
  3. required Widget child,
  4. FutureOr<bool> onDoubleBack()?,
  5. Duration doubleBackDuration = const Duration(milliseconds: 1350),
  6. TextAlign textAlign = TextAlign.center,
  7. TextStyle? textStyle,
  8. Color backgroundColor = Colors.black54,
  9. SnackBarBehavior? behavior,
  10. EdgeInsets? margin,
  11. EdgeInsetsGeometry? padding,
  12. double? width,
})

Implementation

const DoubleBackToExitWidget({
  super.key,
  required this.snackBarMessage,
  required this.child,
  this.onDoubleBack,
  this.doubleBackDuration = const Duration(milliseconds: 1350),
  this.textAlign = TextAlign.center,
  this.textStyle,
  this.backgroundColor = Colors.black54,
  this.behavior,
  this.margin,
  this.padding,
  this.width,
});