showNoticeWarning<T> method

Future<T?> showNoticeWarning<T>(
  1. String message, {
  2. String? key,
  3. Curve? curve,
  4. bool? onGoing,
  5. String? title,
  6. Curve? reverseCurve,
  7. NoticeStyle? style,
  8. CustomOverlayToken<T>? token,
  9. List<Widget> actions = const [],
})

Implementation

Future<T?> showNoticeWarning<T>(
  String message, {
  String? key,
  Curve? curve,
  bool? onGoing,
  String? title,
  Curve? reverseCurve,
  NoticeStyle? style,
  CustomOverlayToken<T>? token,
  List<Widget> actions = const [],
}) async {
  if (!context.mounted) return null;
  token ??= CustomOverlayToken<T>();
  return Notice.showWarning(
    context,
    key: key,
    curve: curve,
    title: title,
    token: token,
    message: message,
    onGoing: onGoing,
    actions: actions,
    style: style,
    reverseCurve: reverseCurve,
  );
}