EWSnackBar.noInternetConnection constructor

EWSnackBar.noInternetConnection({
  1. required Widget content,
  2. required SnackBarAction action,
  3. Key? key,
  4. double? width,
  5. ShapeBorder? shape,
  6. double? actionOverflowThreshold,
  7. Animation<double>? animation,
  8. Color? backgroundColor,
  9. Clip clipBehavior = Clip.hardEdge,
  10. Color? closeIconColor,
  11. DismissDirection dismissDirection = DismissDirection.horizontal,
  12. Duration duration = const Duration(seconds: 3),
  13. double? elevation,
  14. HitTestBehavior? hitTestBehavior,
  15. EdgeInsetsGeometry? margin,
  16. void onVisible()?,
  17. EdgeInsetsGeometry? padding = const EdgeInsets.all(16),
  18. bool showCloseIcon = false,
  19. SnackBarBehavior? behavior,
})

Implementation

factory EWSnackBar.noInternetConnection({
  required Widget content,
  required SnackBarAction action,
  Key? key,
  double? width,
  ShapeBorder? shape,
  double? actionOverflowThreshold,
  Animation<double>? animation,
  Color? backgroundColor,
  Clip clipBehavior = Clip.hardEdge,
  Color? closeIconColor,
  DismissDirection dismissDirection = DismissDirection.horizontal,
  Duration duration = const Duration(seconds: 3),
  double? elevation,
  HitTestBehavior? hitTestBehavior,
  EdgeInsetsGeometry? margin,
  void Function()? onVisible,
  EdgeInsetsGeometry? padding = const EdgeInsets.all(16),
  bool showCloseIcon = false,
  SnackBarBehavior? behavior,
}) {
  return EWSnackBar(
    key: key,
    width: width,
    shape: shape,
    actionOverflowThreshold: actionOverflowThreshold,
    animation: animation,
    backgroundColor: backgroundColor,
    clipBehavior: clipBehavior,
    closeIconColor: closeIconColor,
    dismissDirection: dismissDirection,
    duration: duration,
    elevation: elevation,
    hitTestBehavior: hitTestBehavior,
    margin: margin,
    onVisible: onVisible,
    padding: padding,
    showCloseIcon: showCloseIcon,
    content: content,
    action: action,
    behavior: behavior,
  );
}