ErrorScreen constructor

const ErrorScreen({
  1. Key? key,
  2. Function? onPressed,
  3. String msg = 'Something went wrong, please retry.',
})

Implementation

const ErrorScreen(
    {Key? key,
    this.onPressed,
    this.msg = 'Something went wrong, please retry.'})
    : super(key: key);