showErrorSnackBar method

void showErrorSnackBar(
  1. String? errorMessage
)

Implementation

void showErrorSnackBar(String? errorMessage) => ScaffoldMessenger.of(this)
  ..hideCurrentSnackBar()
  ..showSnackBar(
    SnackBar(
      backgroundColor: ColorName.error,
      content: Text(
        errorMessage ?? 'something_went_wrong'.translate,
        style: textTheme.bodySmall?.copyWith(
          color: ColorName.white,
        ),
      ),
    ),
  );