warn static method

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

Displays an warn notification.

Implementation

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

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