EWSnackBar.noInternetConnection constructor
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 onVisible()?,
- EdgeInsetsGeometry? padding = const EdgeInsets.all(16),
- bool showCloseIcon = false,
- 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,
);
}