showSnackBar method

void showSnackBar({
  1. required BuildContext context,
  2. String content = '',
})

Implementation

void showSnackBar({
  required BuildContext context,
  String content = '',
}) {
  ScaffoldMessenger.of(context).showSnackBar(
    SnackBar(
      content: Text(
        content,
      ),
    ),
  );
}