INNER CODE UNIT · Dart

of

Im-Kevin/cool_ui · lib/dialogs/weui_toast.dart:139

  static WeuiToastConfigData of(BuildContext context) {
    var widget = context.dependOnInheritedWidgetOfExactType<WeuiToastConfig>();
    if(widget is WeuiToastConfig){
      return widget.data ?? WeuiToastConfigData();
    }
    return WeuiToastConfigData();
  }
}

Future showWeuiSuccessToast(
    {required BuildContext context,
    Widget? message,
    stopEvent = false,
    bool? backButtonClose,
    Alignment? alignment,
    Duration? closeDuration}) {
      
  var config = WeuiToastConfig.of(context);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…