DoubleBackToExitWidget constructor
const
DoubleBackToExitWidget({
- Key? key,
- required String snackBarMessage,
- required Widget child,
- FutureOr<
bool> onDoubleBack()?, - Duration doubleBackDuration = const Duration(milliseconds: 1350),
- TextAlign textAlign = TextAlign.center,
- TextStyle? textStyle,
- Color backgroundColor = Colors.black54,
- SnackBarBehavior? behavior,
- EdgeInsets? margin,
- EdgeInsetsGeometry? padding,
- 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,
});