SilToast class

Constructors

SilToast()
工厂方法创建实例
factory

Properties

backgroundColor Color?
getter/setter pair
botToastBuilder TransitionBuilder
初始化BotToast
no setter
hashCode int
The hash code for this object.
no setterinherited
isAllowShow bool
getter/setter pair
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle?
getter/setter pair

Methods

init(GlobalKey<NavigatorState> navigatorKey, {Color? backgroundColor, TextStyle? textStyle}) SilToast
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

Static Methods

show(String msg, {int duration = 1000, ToastPosition position = ToastPosition.Middle}) → void
@description: 吐司文字 (使用前,先确认是否init方法进行初始化) @param { msg:消息内容 duration: 显示持续时间,单位毫秒,默认1000毫秒 position: 位置,默认Middle中间显示 }
showWidget({required Widget child, int duration = 1000}) → void
@description: 吐司内容 (使用前,先确认是否init方法进行初始化) @param { child: 子内容 duration: 显示持续时间,单位毫秒,默认1000毫秒 }