snackBarWithAction method

void snackBarWithAction(
  1. BuildContext context
)

Implementation

void snackBarWithAction(BuildContext context){
  ScaffoldMessenger.of(_scaffoldCtx).showSnackBar(SnackBar(
    content: Text("Snackbar With Action"),
    duration: Duration(seconds: 2),
    action: SnackBarAction(
      label: "UNDO",
      onPressed: (){},
    ),
  ));
}