Toast class

A Toast. Use ToastService.show to display a toast.

Constructors

Toast({required ToastType type, required String title, String? subtitle, File? image, List<String>? actions})

Properties

actions List<String>?
List of actions to be shown on the Toast.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Unique ID of this Toast.
getter/setter pair
image File?
Image File to show inside the Toast.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle String?
Subtitle of the Toast.
final
title String
Title of Toast.
final
type ToastType
Type of Toast.
final

Methods

dispose() → void
Releases resources allocated to the instance of Toast.
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