showErrorSnackbar method

void showErrorSnackbar({
  1. required String title,
  2. String? subtitle,
  3. Duration? duration,
  4. bool showProgressIndicator = false,
  5. ContentDesignStyle? designStyle,
  6. double? blur,
  7. ImageFilter? backdropFilter,
})

Shows an error snackbar

Example:

context.showErrorSnackbar(
  title: 'Error',
  subtitle: 'Something went wrong',
);

Implementation

void showErrorSnackbar({
  required String title,
  String? subtitle,
  Duration? duration,
  bool showProgressIndicator = false,
  ContentDesignStyle? designStyle,
  double? blur,
  ImageFilter? backdropFilter,
}) {
  SavePointsSnackbar.showError(
    this,
    title: title,
    subtitle: subtitle,
    duration: duration,
    showProgressIndicator: showProgressIndicator,
    designStyle: designStyle,
    blur: blur,
    backdropFilter: backdropFilter,
  );
}