success static method

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

Displays an success notification.

Implementation

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

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