showSnackBar method

dynamic showSnackBar({
  1. String msg = "Permission Denied.",
})

Used to show message

Implementation

showSnackBar({String msg = "Permission Denied."}) {
  ScaffoldMessenger.of(context).showSnackBar(SnackBar(
    content: Text(msg),
    duration: const Duration(milliseconds: 1000),
  ));
}