NativeToast class

NativeToast is responsible to connect to Android via the platform channel Example Usage: await NativeToast().makeText(

Constructors

NativeToast()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

makeText({required String message, int duration = shortLength}) Future<void>
makeText is the function responsible to show the toast natively. message is the required parameter inorder to show the text message. duration is the optional parameter to set how log a Toast is show. by default it is set to shortLength
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

longLength → const int
longLength is used to show the toast for the longer period.
shortLength → const int
shortLength is used to show the toast for the shorter period.