showBar static method

void showBar(
  1. BuildContext ctx, [
  2. String? text,
  3. Color? bg
])

Implementation

static void showBar(BuildContext ctx, [String? text, Color? bg]) {
  ScaffoldMessenger.of(
    ctx,
  ).showSnackBar(SnackBar(content: Text(text ?? ''), backgroundColor: bg));
}