FlutterToastifyContent class
The inner layout of a notification: icon, divider, title, description,
optional action and close button. Used by FlutterToastify; you rarely
need it directly.
Bildirimin iç yerleşimi: ikon, ayraç, başlık, açıklama, isteğe bağlı eylem
ve kapatma düğmesi. FlutterToastify tarafından kullanılır.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- FlutterToastifyContent
Constructors
- FlutterToastifyContent({Key? key, Widget? title, required Widget description, required NotificationType notificationType, required bool displayCloseButton, required VoidCallback onCloseButtonPressed, Widget closeButton(void dismissNotification())?, Widget? icon, double iconSize = 20, Widget? action, VoidCallback? onActionPressed, double verticalPadding = 0})
-
Creates the notification content. / Bildirim içeriğini oluşturur.
const
Properties
- action → Widget?
-
Optional tappable widget under the description. / Açıklama altındaki isteğe bağlı tıklanabilir bileşen.
final
- closeButton → Widget Function(void dismissNotification())?
-
Builds a custom close button; null uses the default one.
final
- description → Widget
-
Main content. / Ana içerik.
final
- displayCloseButton → bool
-
Whether to show the close button. / Kapatma düğmesi gösterilsin mi.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
Icon of a custom notification. / Özel bildirimin ikonu.
final
- iconSize → double
-
Size of the built-in style icons. / Hazır stil ikonlarının boyutu.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- notificationType → NotificationType
-
Style that decides which icon is shown. / Hangi ikonun gösterileceğini belirleyen tür.
final
- onActionPressed → VoidCallback?
-
Called when action is tapped. / action tıklandığında çağrılır.
final
- onCloseButtonPressed → VoidCallback
-
Called when the close button is pressed. / Kapatma düğmesine basıldığında çağrılır.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → Widget?
-
Optional title. / İsteğe bağlı başlık.
final
- verticalPadding → double
-
Top and bottom padding of the text column.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited