FToast class

Runs on dart side this has no interaction with the Native Side Works with all platforms just in two lines of code final fToast = FToast().init(context) fToast.showToast(child)

Constructors

FToast()
Prmary Constructor for FToast
factory

Properties

context BuildContext?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

init(BuildContext context) FToast
Take users Context and saves to avariable
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCustomToast() → dynamic
If any active toast present call removeCustomToast to hide the toast immediately
removeQueuedCustomToasts() → dynamic
FToast maintains a queue for every toast if we called showToast for 3 times we all to queue and show them one after another
showToast({required Widget child, PositionedToastBuilder? positionedToastBuilder, Duration toastDuration = const Duration(seconds: 2), ToastGravity? gravity}) → void
showToast accepts all the required paramenters and prepares the child calls _showOverlay to display toast
toString() String
A string representation of this object.
inherited

Operators

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