SmartConfigNotify class

show() global config

show() 全局配置

Constructors

SmartConfigNotify({Alignment alignment = Alignment.center, SmartAnimationType animationType = SmartAnimationType.fade, Duration animationTime = const Duration(milliseconds: 200), bool useAnimation = true, bool usePenetrate = true, Color maskColor = const Color.fromRGBO(0, 0, 0, 0.46), Widget? maskWidget, bool clickMaskDismiss = false, bool debounce = false, Duration debounceTime = const Duration(milliseconds: 300), Duration? displayTime = const Duration(milliseconds: 2500), SmartAwaitOverType awaitOverType = SmartAwaitOverType.dialogDismiss, SmartMaskTriggerType maskTriggerType = SmartMaskTriggerType.up, List<SmartNonAnimationType> nonAnimationTypes = const [], SmartBackType backType = SmartBackType.ignore, bool isExist = false})

Properties

alignment Alignment
control the location of the dialog on the screen
final
animationTime Duration
animationTime:The animation time can be set
final
animationType SmartAnimationType
Animation type animationType:For details, please refer to the SmartAnimationType comment
final
awaitOverType SmartAwaitOverType
The type of dialog await ending
final
backType SmartBackType
For different processing types of return events, please refer to the description of SmartBackType for details
final
clickMaskDismiss bool
true(dialog will be closed after click background),false(not close)
final
debounce bool
debounce feature,it works on toast and dialog:default(false);
final
debounceTime Duration
debounceTime:Within the debounce time, multiple clicks will only respond to the first time, and the second invalid click will trigger the debounce time to re-time. note: The definition of anti-shake is that the response will not be triggered again at the specified time, which will cause a delay in the click response, so the actual implementation needs to be adjusted a little.
final
displayTime Duration?
displayTime:Controls the display time of the dialog on the screen; the default is null, if it is null, it means that the param will not control the dialog to close;
final
hashCode int
The hash code for this object.
no setterinherited
isExist bool
whether custom dialog(show()) exist on the screen
getter/setter pair
maskColor Color
the color of the mask,it is invalid if usePenetrate is true or maskWidget set the value
final
maskTriggerType SmartMaskTriggerType
When the mask is clicked, the trigger timing type (please refer to the SmartMaskTriggerType note for details)
final
maskWidget Widget?
highly customizable mask, it is invalid if usePenetrate is true
final
nonAnimationTypes List<SmartNonAnimationType>
For different scenes, the pop-up animation can be dynamically closed. For details, please refer to SmartNonAnimationType
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useAnimation bool
true(use the animation),false(not use)
final
usePenetrate bool
On-screen interaction events can penetrate the masked background: true(click event will penetrate background),false(not penetration)
final

Methods

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