DoubleBackToCloseApp constructor

const DoubleBackToCloseApp({
  1. Key? key,
  2. required SnackBar snackBar,
  3. required Widget child,
})

Creates a widget that allows the user to close the app by double tapping the back-button.

Implementation

const DoubleBackToCloseApp({
  Key? key,
  required this.snackBar,
  required this.child,
}) : super(key: key);