showExceptionSnackbar method

void showExceptionSnackbar(
  1. CameraException e
)

Implementation

void showExceptionSnackbar(CameraException e) {
  ScaffoldMessenger.of(context)
    ..clearSnackBars()
    ..showSnackBar(
      SnackBar(content: Text(e.toString())),
    );
}