warn static method

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

Displays an warn notification.

Implementation

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

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