success static method

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

Displays an success notification.

Implementation

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

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