error static method

void error(
  1. BuildContext context,
  2. String message, {
  3. Key? key,
  4. FastNotificationCenterOptions options = _kDefaultErrorOptions,
})

Displays an error notification.

Implementation

static void error(
  BuildContext context,
  String message, {
  Key? key,
  FastNotificationCenterOptions options = _kDefaultErrorOptions,
}) {
  final palette = ThemeHelper.getPaletteColors(context);

  _buildNotification(
    context,
    message,
    options: _mergeIconColors(options, palette.red.mid),
  );
}