snackBarWithActionIndefinite method

void snackBarWithActionIndefinite(
  1. BuildContext context
)

Implementation

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