error static method

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

Displays an error notification.

Implementation

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

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