dismiss method
Implementation
void dismiss({String? error, ValueChanged<bool>? dismissComplete}){
//change data
_msg_error = error ??"";
_progressActive = false;
setState(() {
});
//wait for ram to fix progrss stop animate
Timer(Duration(milliseconds: 1), () {
if(dismissComplete != null ) dismissComplete(true);
});
}