ToastItem class

Constructors

ToastItem(String title, {int durationMS = 3000, Color color = Colors.white, Color fillColor = Colors.black54, IconData? icon, double width = 280, Alignment? alignment})

Properties

alignment Alignment?
getter/setter pair
color Color
getter/setter pair
durationMS int
getter/setter pair
fillColor Color
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
getter/setter pair
width double
getter/setter pair

Methods

align(Alignment a) ToastItem
build(OverlayContext context) Widget
center() ToastItem
centerBottom(double y) ToastItem
duration(int ms) ToastItem
durationLong() ToastItem
durationShort() ToastItem
error() ToastItem
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() → void
success() ToastItem
toString() String
A string representation of this object.
inherited
warn() ToastItem

Operators

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