ScaffoldMessenger constructor

const ScaffoldMessenger({
  1. Key? key,
  2. required Widget child,
})

Creates a widget that manages SnackBars for Scaffold descendants.

Implementation

const ScaffoldMessenger({
  super.key,
  required this.child,
});