ToastificationStyle enum

Defines the visual style of built-in toast notifications.

The style affects how the toast notification is rendered, including its background, borders, colors, and overall visual presentation.

Available styles:

  • minimal - A clean, minimalist design with subtle borders
  • fillColored - Full background color based on the toast type
  • flatColored - Combines flat design with type-based colors
  • flat - Modern flat design with neutral colors
  • simple - Basic text-only toast without icons or decorations

Usage example:

toastification.show(
  title: Text('Hello'),
  style: ToastificationStyle.flat,
  type: ToastificationType.success,
);
Inheritance
Available extensions

Values

minimal → const ToastificationStyle

A minimalist design with subtle borders and clean appearance

fillColored → const ToastificationStyle

Full colored background based on the toast type (info, success, warning, error)

flatColored → const ToastificationStyle

Flat design with colors determined by the toast type

flat → const ToastificationStyle

Modern flat design with consistent neutral colors

simple → const ToastificationStyle

Basic text-only toast without icons or additional styling Useful for simple message displays

Properties

$ Signal<T>

Available on T, provided by the SignalEnumExtensions extension

Return a signal from a Enum value
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toStandard StandardStyle

Available on ToastificationStyle, provided by the ToastStyleExtension extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ToastificationStyle>
A constant List of the values in this enum, in order of their declaration.